Skip to content

Instantly share code, notes, and snippets.

@alimbada
Created February 19, 2020 11:51
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 alimbada/45914a9485f7f8c059a343afd5f15d60 to your computer and use it in GitHub Desktop.
Save alimbada/45914a9485f7f8c059a343afd5f15d60 to your computer and use it in GitHub Desktop.
Revert git typechanges
git status --porcelain=2 | awk '{if($2==".T") {print "git checkout " $NF}}' | sh
@alimbada
Copy link
Author

Useful for reverting Linux symlinks that become mangled when Windows programs touch them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment