How to make Git "forget" about a file that was tracked but is now in .gitignore? -


there file being tracked @ 1 time git, file on .gitignore list.

however, file keeps showing in git status after it's edited. how force git forget it?

.gitignore prevent untracked files being added (without add -f) set of files tracked git, git continue track files being tracked.

to stop tracking file need remove index. can achieved command.

git rm --cached <file> 

the removal of file head revision happen on next commit.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -