Skip to content

Instantly share code, notes, and snippets.

@endtwist
Created September 27, 2013 18:14
Show Gist options
  • Save endtwist/6732790 to your computer and use it in GitHub Desktop.
Save endtwist/6732790 to your computer and use it in GitHub Desktop.
[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
[alias]
aa = add --all
ci = commit
cv = commit -v
cav = commit -a -v
ca = commit -a
cb = checkout -b
br = branch
prb = pull --rebase
unch = update-index --assume-unchanged
st = status
co = checkout
h = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
tr = !"git branch --track \"$1\" \"origin/$1\" && git checkout \"$1\""
[push]
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment