Instantly share code, notes, and snippets.

Embed
What would you like to do?
[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