Skip to content

Instantly share code, notes, and snippets.

@subhaze
Created April 2, 2012 22:42
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 subhaze/2287729 to your computer and use it in GitHub Desktop.
Save subhaze/2287729 to your computer and use it in GitHub Desktop.
current gitconfig setup that I've pieced together with personal stuff and things found on teh internets
[color]
# turn on color
diff = auto
status = auto
branch = auto
interactive = auto
ui = auto
[color "branch"]
current = green bold
local = green
remote = red bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green bold
changed = yellow bold
untracked = red
[color "sh"]
branch = yellow
[alias]
st = status
ci = commit
br = branch
bra = branch -a
co = checkout
df = diff
lg = log --pretty=format:'%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s'
lgstat = log --pretty=format:'%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s' --stat
lgdif = log --pretty=format:'%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s' -p
lggraph = log --pretty=format:'%Cred%h%Creset <%Cblue%an%Creset> %s' --graph
lgorder = log --pretty=format:'%Cred%h%Creset <%Cblue%an%Creset> %s' --date-order --graph
lgby = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s\" --author=$1' -"
lgfind = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s\" --grep=$1' -"
lgbefore = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s\" --before='$1'' -"
lgafter = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s\" --after='$1'' -"
lgbetween = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s\" --after=\"$1\" --before=\"$2\"' -"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment