Sometimes git doesn't ignore files that it has been tracking when you declare them in .gitignore
. After you put something in .gitignore
and commit it and it still tracks those files, run these series of commands.
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
Adopt, don't shop.