Skip to content

Instantly share code, notes, and snippets.

@MeikelLP
Created June 5, 2019 14:01
Show Gist options
  • Save MeikelLP/5adf804606ab9180e972b33d155c6916 to your computer and use it in GitHub Desktop.
Save MeikelLP/5adf804606ab9180e972b33d155c6916 to your computer and use it in GitHub Desktop.
When Git does not want to track your files
git ls-files -v | Where-Object { $_ -cmatch '^h' } | ForEach-Object { git update-index --no-assume-unchanged "$($_.replace('h ', ''))" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment