.gitignore not working
I've been facing this issues a few times but not sure how it actually happened (I guess it has something to do with git caching). Anyway here's the solution to clean up the cache.
git rm -r --cached .
git add .
Commit the changes and continue your development journey :)
Written by shinn
Related protips
2 Responses
I believe this happens when you try to ignore a file that's already in the repository.
over 1 year ago
·
Correct. By default, .gitignore only ignores new files that haven't been added to the repository.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Gitignore
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#