Skip to content

Instantly share code, notes, and snippets.

@frontend-3
Last active April 15, 2016 16:29
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 frontend-3/dbcf136a1636ba7784c540ce85c80f8b to your computer and use it in GitHub Desktop.
Save frontend-3/dbcf136a1636ba7784c540ce85c80f8b to your computer and use it in GitHub Desktop.
Stop tracking tracked files on folder
#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