Skip to content

Instantly share code, notes, and snippets.

@we11adam
Last active December 16, 2015 09:09
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save we11adam/5411381 to your computer and use it in GitHub Desktop.
Save we11adam/5411381 to your computer and use it in GitHub Desktop.
My ~/.gitconfig setup
[user]
name = Adam Lau
email = skyros@gmail.com
[push]
default = current
[mergetool]
keepBackup = true
[merge]
tool = vimdiff
[core]
editor = vim
filemode = false
[alias]
ui = !stree
co = checkout
rl = reflog
br = branch
ci = commit
st = status
cfg = config --global
unstage = reset HEAD --
pl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
last = log -1 HEAD
pushall = "!f(){ for i in `git remote`; do git push $i; done; };f"
h = help
md = diff --minimal -w
amend = commit --amend
l3 = log -3
[help]
autocorrect = 1
[color]
ui = true
status = true
grep = true
interactive = true
branch = true
diff = true
decorate = true
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[rerere]
enabled = true
[pull]
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment