← back to code snippets


Untrack Git files without deleting

Posted on June 6th, 2015 by Graeme

Source

echo "FILE_NAME" >> .gitignore

git rm --cached FILE_NAME

git add -u

git commit -m "removing files from version control"

# Sync with your git server, pull to sync and push to register your local change

git pull

git push