Git is a very good code management tool and Eclipse is a very good, free IDE. It's a bit of a hassle to get together at work: Eclipse will generate some specific files for each project that are not required by the project, and each person's configuration is not the same, so these files are not good to put into the repository with the Code unified management. In the beginning, I was executing git add or git reset these commands when the file is specified, this does not come directly to git Add. Such commands are convenient. The next step is to introduce a once and for all method:
Step one: Enter the. Git directory of the current project repository and enter the info directory
Step Two: Locate the exclude file and copy the new eclipse-generated file name into the Exclude
Step three: After saving, the CD to the Project repository directory, at this time to execute GIT status can find out what eclipse produced the wood has, the mission is done
In the Exclude file add does not follow the file is valid for the current working directory and its subdirectories, if you want to put this configuration into the repository for other colleagues can also use, You can create a new. gitignore file under the project root, write the file name that you do not care about (the file supports regular expressions), and then submit it to the repository.
Previous article, Eclipse usage and tip 23: View JDK Source code:
http://blog.csdn.net/maybe_windleave/article/details/9896501
Next article, Eclipse usage and tip 25: What the Eclipse icon means:
http://blog.csdn.net/maybe_windleave/article/details/12527335
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Eclipse usage and Tip 24: When Git encounters eclipse