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.