Skip to content

Instantly share code, notes, and snippets.

@visioncan
Last active March 2, 2016 05:39
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 visioncan/8129329 to your computer and use it in GitHub Desktop.
Save visioncan/8129329 to your computer and use it in GitHub Desktop.
my gitconfig
[user]
name = visioncan
email = visioncan@gmail.com
[color]
branch = auto
diff = auto
status = auto
log = auto
ui = 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
[core]
editor = vim
excludesfile = ~/.gitignore_global
filemode = false
[alias]
ciav = commit -a -v
cim = commit -m
throw = reset --hard HEAD
throwh = reset --hard HEAD^
co = checkout
ci = commit
di = diff
st = status
br = branch
re = remote
di = diff
lg = "!source ~/.dotfiles/.githelper && pretty_git_log"
lg2 = "log --graph --pretty=format:'%Cred%h%Creset - %Cgreen(%cr) %C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit"
[difftool]
prompt = false
[gui]
encoding = utf-8
[i18n]
commitencoding = utf-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment