Skip to content

Instantly share code, notes, and snippets.

@BumbuKhan
Last active January 6, 2017 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BumbuKhan/63fcad0ce637d5fcf798a8f9da10bf5e to your computer and use it in GitHub Desktop.
Save BumbuKhan/63fcad0ce637d5fcf798a8f9da10bf5e to your computer and use it in GitHub Desktop.
git remove files from tracking
git rm --cached <file> - Delete file from git and stop tracking. This command also deletes <file> in remote repository
git rm -r --cached <folder> - The same thing but works recursively.
git update-index --assume-unchanged <file> - Use this command to prevent git from detecting changes in <file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment