Last active
April 15, 2016 16:29
-
-
Save frontend-3/dbcf136a1636ba7784c540ce85c80f8b to your computer and use it in GitHub Desktop.
Stop tracking tracked files on folder
This file contains hidden or 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
#Add folders | |
git ls-files -z path/to/folder | xargs -0 git update-index --assume-unchanged | |
#List files asume unchanged | |
git ls-files -v|grep '^h' | |
#Remove folder unchaged | |
git ls-files -z path/to/folder | xargs -0 git update-index --no-assume-unchanged | |
# Source http://stackoverflow.com/questions/16346535/recursive-git-update-index-assume-unchanged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment