Skip to content

Instantly share code, notes, and snippets.

@tomas-stefano
Created August 13, 2013 18:55
Show Gist options
  • Save tomas-stefano/6224442 to your computer and use it in GitHub Desktop.
Save tomas-stefano/6224442 to your computer and use it in GitHub Desktop.
A short git config.
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
excludesfile = /Users/tomas-stefano/.gitignore_global
[branch]
autosetuprebase = always
[alias]
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
st = status -sb
history = log -u --graph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment