Skip to content

Instantly share code, notes, and snippets.

@bufordtaylor
Created April 11, 2014 19:30
Show Gist options
  • Save bufordtaylor/10494713 to your computer and use it in GitHub Desktop.
Save bufordtaylor/10494713 to your computer and use it in GitHub Desktop.
git config aliases +git
[alias]
st = status
co = checkout
br = branch
st = status
ci = commit
w = whatchanged
abbrev = !sh -c 'git rev-parse --short ${1-`echo HEAD`}' -
[gc]
auto = 1
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[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]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
[user]
name = xxx
email = xxxx@gmail.com
[pager]
show-branch = true
status = cat
[difftool]
prompt = false
[core]
trustctime = false
excludesfile = .vagrant
editor = vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment