"Un-index" a directory in git
You've added a directory to the gitignore file, however this directory has been previously indexed. Fortunately you can still ignore this directory, but you'll need to clear it from your current index by running the following code:
git rm -r --cached /path/to/dir;
Source:
http://www.kernel.org/pub/software/scm/git/docs/gitignore.html
Written by Anthony Linnabery
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#