Untrack Files with Git
Posted on December 8th, 2009 by Paul
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
