Skip to content

Instantly share code, notes, and snippets.

@diwa-zz
Created August 2, 2013 06:38
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 diwa-zz/6137907 to your computer and use it in GitHub Desktop.
Save diwa-zz/6137907 to your computer and use it in GitHub Desktop.
Sample gitconfig
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
interactive = auto
[color]
ui = 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
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
s = status
c = commit
cm = commit -m
ca = commit --amend # careful
ll = log --stat --abbrev-commit
d = diff --color-words
dh = diff --color-words head
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment