Created
February 19, 2020 11:51
-
-
Save alimbada/45914a9485f7f8c059a343afd5f15d60 to your computer and use it in GitHub Desktop.
Revert git typechanges
This file contains 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
git status --porcelain=2 | awk '{if($2==".T") {print "git checkout " $NF}}' | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful for reverting Linux symlinks that become mangled when Windows programs touch them.