Skip to content

Instantly share code, notes, and snippets.

@jcarley
Forked from vgrichina/.gitconfig
Created February 9, 2012 00:45
Show Gist options
  • Save jcarley/1775989 to your computer and use it in GitHub Desktop.
Save jcarley/1775989 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