Created
December 8, 2013 19:50
-
-
Save ericwoodruff/7862982 to your computer and use it in GitHub Desktop.
Inverting git index
This file contains hidden or 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
[alias] | |
swaplast = !git tag _invert && git reset --hard HEAD~2 && git cherry-pick _invert _invert~1 && git tag -d _invert | |
invertindex = !git commit -m tmp1 && git add -A && git commit -m tmp2 && git swaplast && git reset HEAD~1 && git reset HEAD~1 --soft |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this - very helpful
Just have a few queries: