gitignore

How can I decide to add .idea/jarRepositories.xml in .gitignore

元气小坏坏 提交于 2020-08-26 03:49:32
问题 I found an unfamiliar file .idea/jarRepositories.xml , when I updated Android Studio 3.5.3 to 4.0.1 on Mac. The content is as follows: <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="RemoteRepositoriesConfiguration"> <remote-repository> <option name="id" value="central" /> <option name="name" value="Maven Central repository" /> <option name="url" value="https://repo1.maven.org/maven2" /> </remote-repository> <remote-repository> <option name="id" value="jboss

Did Git change the “!” prefix behavior at .gitignore?

不打扰是莪最后的温柔 提交于 2020-08-05 04:16:06
问题 I found a below sentence in Git 2.7 Release Notes. Allow a later "!/abc/def" to override an earlier "/abc" that appears in the same .gitignore file to make it easier to express "everything in /abc directory is ignored, except for ...". Git 2.7 Release Notes However, This function seems to be invalid in subsequent versions. $ git --version git version 2.19.1 $ cat .gitignore /abc !/abc/def $ mkdir abc $ echo foo > abc/def $ git status On branch master nothing to commit, working tree clean Did

Angular2 .gitignore

你离开我真会死。 提交于 2020-07-17 07:11:31
问题 I'm setting up an Angular 2 sample project. Is my .gitignore enough already or did I miss anything? node_modules typings jspm_packages bower_components app/**/*.js app/**/*.map 回答1: angular-cli generates # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /dist /tmp /out-tsc # dependencies /node_modules # IDEs and editors /.idea .project .classpath .c9/ *.launch .settings/ *.sublime-workspace # IDE - VSCode .vscode/* !.vscode/settings.json !.vscode

Git still adds and tracks folders marked in .gitignore [duplicate]

99封情书 提交于 2020-06-24 00:43:06
问题 This question already has answers here : Ignore files that have already been committed to a Git repository [duplicate] (21 answers) Closed 6 years ago . I have a few folders in Git added in my ".gitignore" file. They contain over 100k files. Mainly images, tmp and cache stuff. What I need is to be able to commit changes to my code with out committing what happens in those folders. I thought adding them into the ".gitignore" would do the trick but for some reason it's not working at all. I

Keep existing files from getting updates in Git [duplicate]

百般思念 提交于 2020-04-18 05:35:21
问题 This question already has answers here : Applying .gitignore to committed files (6 answers) Committing Machine Specific Configuration Files (10 answers) Closed 14 days ago . I have a google_oauth_server.xml file in my project. It contains a client id, which I would like to not get checked into the repository. <?xml version="1.0" encoding="utf-8"?> <!-- Do not split into debug and release, as there is one server--> <resources> <string name="google_server_client_id" templateMergeStrategy=

Node modules pushed to GitHub

风流意气都作罢 提交于 2020-03-17 07:34:28
问题 I am trying to push my project to github and heroku. Since I am using nodejs in my app , I have node_modules. Before I commit I have created a file called .gitignore to ignore the node modules. Inside the file I have added node_modules and tried to push to the GitHub from the comandline/Terminal. I was not expecting the node modules to be push but they appeared finally in the repo. Is there any ways i have to follow , i need help in this regards; thanks! Here is how I resolve my issue - $ git