-
To ignore unstaged changes:
git commit -- .
-
To stop tracking a file or folder that was added earlier but later added to .giignore:
git rm --cached <file>
git rm -r --cached <folder>
WARNING: While this will not remove the physical file from your local, it will remove the files from other developers machines on next git pull.