Skip to content

Instantly share code, notes, and snippets.

@gorenje
Created June 8, 2011 10:15
Show Gist options
  • Save gorenje/1014155 to your computer and use it in GitHub Desktop.
Save gorenje/1014155 to your computer and use it in GitHub Desktop.
git global config
[alias]
st = status
ci = commit
co = checkout
cp = cherry-pick
br = branch
lg = log
ms = merge --squash
rs = remote show
pish = push
d = diff
ls = ls-files
wn = !BRANCH=$(git symbolic-ref HEAD|sed s:refs/heads/::) && git fetch -q origin && git log --reverse --stat -p ${BRANCH}..origin/${BRANCH}
[color]
diff = auto
status = auto
branch = auto
ui = auto
interactive = auto
svn = auto
[core]
excludesfile = /home/username/.gitignore
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[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 = white
untracked = cyan
[color "log"]
commit = red reverse
[alias]
st = status
ci = commit
co = checkout
cp = cherry-pick
br = branch
lg = log
ms = merge --squash
rs = remote show
pish = push
d = diff
ls = ls-files
wn = !BRANCH=$(git symbolic-ref HEAD|sed s:refs/heads/::) && git fetch -q origin && git log --reverse --stat -p ${BRANCH}..origin/${BRANCH}
[color]
diff = auto
status = auto
branch = auto
ui = auto
interactive = auto
svn = auto
[core]
excludesfile = /home/username/.gitignore
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[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 = white
untracked = cyan
[color "log"]
commit = red reverse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment