Skip to content

Instantly share code, notes, and snippets.

@joren
Created June 12, 2013 13: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 joren/5765089 to your computer and use it in GitHub Desktop.
Save joren/5765089 to your computer and use it in GitHub Desktop.
Git config
[user]
name = Joren De Groof
email = git@jorendegroof.be
[alias]
co = checkout
st = status
ci = commit
ic = commit
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
l = "!source ~/.githelpers && pretty_git_log"
la = !git l --all
r = !git l -30
ra = !git r --all
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[core]
excludesfile = /Users/joren/.gitignore
editor = /usr/local/Cellar/macvim/7.3-66/MacVim.app/Contents/MacOS/Vim
[branch]
autosetuprebase = always
[push]
default = matching
#!/bin/bash
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" $* |
column -t -s '{' |
less -FXRS
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment