And note that you can't commit files you untracked using the commit dialog since it does the
equivalent of git commit -o which ignores the git index. Though you can commit such untracked files
using the staging view.
I believe the OP is asking how to untrack Eclipse-specific files (the target/ dir can be untracked via eGit, as it actually appears in Eclipse). Files/dirs like .settings/, .classpath, and .project are hidden within Eclipse, so it does not appear that you can select them to untrack them if they have been added by mistake. Is there a way to do this with eGit, or do we need to use the git CLI?
By default hidden files starting with a "." are also hidden in Eclipse. You can make them visible in the following way:
- open project explorer
- click the view menu (little triangle in the top right corner of the view)
- click "Customize View..."
- in the Tab "Filters" unselect the entry ".* resources"
- click ok
then you should see hidden files also in the project explorer,
similar menu entries are available in other browsing views like e.g. Package Explorer