Untrack Files with Git

Posted by Chief on Dec 8, 2009 in Reference, Scripts, Tricks and Hacks | Subscribe

When I found this little gem, I couldn’t not (double negative for emphasis) store it for reference.

git rm --cached filename

Don’t worry, it won’t remove your local copy. It just stages it for removal from the history of tracked files.

Reference:
untrack files in git

Tags: , , ,

Leave a Reply

XHTML: You can use these tags:' <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Copyright © 2010 cat brain.log | less All rights reserved.
Shades v1.2 theme from BuyNowShop.com.