Egit User Manual of git plug-in on Eclipse _ configuration. gitignore

Source: Internet
Author: User

At this point, we try to submit

L Team-> commit...

As shown in, author and committer use the user information configured by git by default. In the files window below, we can see the files submitted this time. There are a lot of files with nc_home. In this case, we can guess that, the nc_home linked to our project is also changed to version control by git by default, for example:

Obviously, nc_home and out do not require version control. We can configure. gitignore to exclude these two folders.

Open the Navigator window, add the. gitignore file to the project root directory, and write the excluded directory to The. gitignore file.

Try commit again. The file to be submitted has been filtered

After the first submission, the master branch is automatically generated

Create a new file in public. the icon is still a question mark and is in the untracked State. That is, git does not monitor the file.

You can use team-> Add to index to add files to the GIT index for version monitoring.

As you can see, the icon display has also changed. (In egit, As long as commit is used, untracked files can be added to the index by default and then submitted for updates. separate operations are not required)

You can also use team-> untrack to exclude files from Index Control.

Commit the newly added file to the repository. The file will be in the unmodified state, or this is a staged state.

Then modify the file content. The file will be in the modified state.

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.