I installed the EGit plugin for eclipse found here:
http://www.eclipse.org/egit/
In order to manage the hidden files in a C++ project I open the Navigator
by selecting menu option:
Window -> Show View -> Navigator
.
In the Navigator
(on the left hand side) you can see all the files that are hidden from a C++ project (like .cproject
).
Select all the files/folders you need to ignore, right-click on the selection and go to popup menu item:
Team -> Ignore
.
When you first ignore files in a folder a new file may appear (if its not already there) called .gitignore
. You need to decide if the .gitignore
file is going to be shared project-wide or not. If it is not currently being tracked and it needs to be you can add it to the index
by right-clicking it and selecting Team -> Add to index
. If it is not going to be tracked in the repository then you can select that file and ignore it.
Hope that helps.