Skip to content

Instantly share code, notes, and snippets.

@rockarts
Created May 14, 2014 05:41
Show Gist options
  • Save rockarts/c9510dc5dc6dee69bfaa to your computer and use it in GitHub Desktop.
Save rockarts/c9510dc5dc6dee69bfaa to your computer and use it in GitHub Desktop.
Git Helpers
HASH="%C(yellow)%h%C(reset)"
RELATIVE_TIME="%C(green)%ar%C(reset)"
AUTHOR="%C(bold blue)%an%C(reset)"
REFS="%C(red)%d%C(reset)"
SUBJECT="%s"
FORMAT="$HASH $RELATIVE_TIME $AUTHOR $REFS $SUBJECT"
function pretty_git_log() {
git log --graph --pretty="tformat:$FORMAT"
}
@rockarts
Copy link
Author

l = "!source ~/.githelpers && pretty_git_log"
la = !git l --all
r = !git l -30
ra = !git r --all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment