Skip to content

Instantly share code, notes, and snippets.

@thinktainer
Created July 9, 2015 08:05
Show Gist options
  • Save thinktainer/2488dacf3cda1b24f8ec to your computer and use it in GitHub Desktop.
Save thinktainer/2488dacf3cda1b24f8ec to your computer and use it in GitHub Desktop.
git Restore files tracking in index
git ls-files -v | awk '/^h/ {print $2}' | grep -v keep_ignoring | xargs git update-index --no-assume-unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment