Git Stop Tracking a Directory or file


Another gem I keep forgetting; stop tracking a file/directory in git without deleting it.

git rm -r --cached <directory> or git rm --cached <file>