Skip to content

Instantly share code, notes, and snippets.

@vgrichina
Created January 30, 2012 23:33
Show Gist options
  • Save vgrichina/1707519 to your computer and use it in GitHub Desktop.
Save vgrichina/1707519 to your computer and use it in GitHub Desktop.
[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