In .gitignore
under the same directory there is
.factorypath
/.factorypath
added for eclipse project. But whenever any change occur in this file it is still visible as modified under git or smartgit.
Any idea why ?
In .gitignore
under the same directory there is
.factorypath
/.factorypath
added for eclipse project. But whenever any change occur in this file it is still visible as modified under git or smartgit.
Any idea why ?
Most likely the file .factorypath
was added to git before you excluded it in .gitignore
. From the gitignore documentation (http://git-scm.com/docs/gitignore):
NOTES The purpose of gitignore files is to ensure that certain files not tracked by Git remain untracked. To stop tracking a file that is currently tracked, use git rm --cached.
To show files currently tracked by git you can use git ls-files
.
As stated in the quote above to stop tracking the file use:
git rm --cached .factorypath
.
This will keep your working tree copy of the file but remove it from the index.
It's because the file was previously tracked. With that in mind, this question already has been answered here.