Skip to content

Instantly share code, notes, and snippets.

@mm53bar
Forked from vgrichina/.gitconfig
Created January 31, 2012 14:43
Show Gist options
  • Save mm53bar/1710848 to your computer and use it in GitHub Desktop.
Save mm53bar/1710848 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