My .gitignore is not working
In your directory, type the following :
The hard way
git rm -r --cached .
The soft way
git rm --cached filename
This will remove everything (hard way) or only the specified file (soft way) from your index (not your actual files, don't worry)
git add -A
git commit -m "yeah my .gitignore is now working \o/"
Written by Florian Mierzejewski
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#