-
-
Save BumbuKhan/63fcad0ce637d5fcf798a8f9da10bf5e to your computer and use it in GitHub Desktop.
git remove files from tracking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Read more: http://stackoverflow.com/questions/936249/how-to-stop-tracking-and-ignore-changes-to-a-file-in-git?answertab=votes#tab-top