Created
August 2, 2013 06:38
-
-
Save diwa-zz/6137907 to your computer and use it in GitHub Desktop.
Sample gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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