gergelypolonkai-web-jekyll/_posts/2013-01-14-git-rm-cached-madness.markdown

653 B
Raw Blame History

layout title date tags permalink published author
post git rm --cached madness 2013-01-14 21:38:00+00:00
development
git
/blog/2013/1/14/git-rm-cached-madness true
name email
Gergely Polonkai gergely@polonkai.eu

I have recently learned about git rm --cached. Its a very good tool, as it removes a file from tracking, without removing your local copy of it. However, be warned that if you use git pull in another working copy, the file will be removed from there! If you accidentally put the configuration of a production project, and remove it on your dev machine, it can cause a lot of trouble ;)