Skip to content

Instantly share code, notes, and snippets.

@opi
Last active October 6, 2015 06:07
Show Gist options
  • Save opi/2948293 to your computer and use it in GitHub Desktop.
Save opi/2948293 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = YOUR NAME
email = YOUR EMAIL
[color]
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
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[format]
pretty = oneline
[push]
default = matching
[core]
excludesfile = /path/to/.gitignore_global
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
autocrlf = input
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
pr = pull --rebase
gr = log --all --graph --decorate --oneline
clear = reset --hard
ll = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment