Created
March 15, 2019 16:55
-
-
Save acdvorak/3ca0ae391a243b652fbf70dedeedbe87 to your computer and use it in GitHub Desktop.
Git aliases: tickle (create dummy commit) and undo (revert last commit)
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
git config --global alias.undo '!git rev-parse HEAD | xargs git revert --no-edit' | |
git config --global alias.tickle '!echo foo >> temp.txt && git add temp.txt && git commit --no-verify -m "WIP: Dummy commit" && git undo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment