Eclipse usage and Tip 24: When Git encounters eclipse

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.