Skip to content

Instantly share code, notes, and snippets.

@coreyti
Created August 22, 2008 09:25
Show Gist options
  • Save coreyti/6775 to your computer and use it in GitHub Desktop.
Save coreyti/6775 to your computer and use it in GitHub Desktop.
# my git aliases (incl. printing user.name)
[alias]
who = "!echo ; echo ; echo \"\\tworking as `git config user.name`...\" ; echo ; echo"
what = "!git who ; git diff"
when = "!git who ; git log"
st = "!git who ; git status"
ci = "!git who ; git commit"
co = "!git who ; git checkout"
get = "!git who ; git pull"
put = "!git who ; git push"
bless = "!sh -c 'git who ; git config branch.$0.remote origin ; git config branch.$0.merge refs/heads/$0'"
finish = "!sh -c 'URL=$0 ; MESSAGE=$1 ; git ci -am \"$MESSAGE\n(finishes: $URL)\"'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment