-
-
Save jcarley/1775989 to your computer and use it in GitHub Desktop.
Git aliases inspired by GUM – http://www.saintsjd.com/2012/01/a-better-ui-for-git/
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
[alias] | |
stage = !sh -c '[[ -z "$@" ]] && git add -u || git add "$@" && git add -u "$@" ' - | |
unstage = reset HEAD -- | |
rewind = ![[ -z "$@" ]] && git reset --hard HEAD || git checkout HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment