gergelypolonkai-web-jekyll/content/blog/2013-01-14-git-rm-cached-ma...

17 lines
662 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

git rm --cached madness
#######################
:date: 2013-01-14T21:38:00Z
:category: blog
:tags: development,git
:url: blog/2013/1/14/git-rm-cached-madness.html
:save_as: blog/2013/1/14/git-rm-cached-madness.html
:status: published
:author: Gergely Polonkai
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 ;)