I'm using Eclipse 3.7 (Indigo) with CDT and EGit 2.0.0. I want to commit build directories ( Debug
and Release
) because they contain makefile
, so if I want to compile my project in a host without Eclipse, I can clone the repository, cd
to the Release
directory and call make all
.
My .gitignore
is this:
*.o
*.d
Debug/MyApplication
Release/MyApplication
If I call git status
from a console, it tells that Debug
and Release
directories are untracked, so I can call git add .
.
From Eclipse, this is impossible: it simply ignore Debug and Release directories.
So... how to force Eclipse to stage these directories? I don't want to call git from command line everytime makefile changes.
Update to EGit 2.1 with the following update site (or use the nightly update site ):
http://download.eclipse.org/egit/updates
EGit used to ignore derived resources (eg Eclipse build output folders) before 2.1.
In 2.1, this was changed so that it is consistent with Git, see bug 359052 . It now only ignores files that are explicitly excluded (eg by .gitignore
).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.