Skip to content

Instantly share code, notes, and snippets.

@rjchatfield
Created May 16, 2014 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjchatfield/587fc6ebb5a3854cd91d to your computer and use it in GitHub Desktop.
Save rjchatfield/587fc6ebb5a3854cd91d to your computer and use it in GitHub Desktop.
My most used git aliases
[alias]
# Pretty log
lol = log --oneline --graph --pretty='format:%C(auto)%d %s%Creset %>|(60)%C(dim)(%ar) %h%Creset'
# Pretty status
st = status -s
# Add all, then echo the status (of what I just added)
as = !git add --all && git st
# commit with message, no need for "", with default message. eg:
# $ git c No need for talky talky marks
c = "!f() { msg=${@-Updated stuff}; git commit -m \"${msg}\"; };" f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment