Skip to content

Instantly share code, notes, and snippets.

@acdvorak
Created March 15, 2019 16:55
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 acdvorak/3ca0ae391a243b652fbf70dedeedbe87 to your computer and use it in GitHub Desktop.
Save acdvorak/3ca0ae391a243b652fbf70dedeedbe87 to your computer and use it in GitHub Desktop.
Git aliases: tickle (create dummy commit) and undo (revert last commit)
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