Skip to content

Instantly share code, notes, and snippets.

@insoul
Created September 26, 2012 03:04
Show Gist options
  • Save insoul/3785755 to your computer and use it in GitHub Desktop.
Save insoul/3785755 to your computer and use it in GitHub Desktop.
git global config
[user]
name = Foo
email = [email protected]
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[merge]
summary = true
tool = vimdiff
[diff]
tool = "git-diff-wrapper.sh"
[alias]
st = status
ci = commit -v
cia = commit -v -a
co = checkout
br = branch
ll = log --oneline --decorate
l = log --color --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s%C(bold blue) %an%Creset %Cgreen%cr%Creset' --abbrev-commit
lg = log --color --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %C(bold blue)%an%Creset %Cgreen%cr%Creset ' --abbrev-commit --graph
lm = log --color --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s%C(bold blue) %an%Creset %Cgreen%cr%Creset' --abbrev-commit master..
lgm = log --color --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %C(bold blue)%an%Creset %Cgreen%cr%Creset ' --abbrev-commit --graph master..
[core]
editor = /usr/bin/vim
excludesfile = /Users/foo/.gitignore_global
#autocrlf = true
[github]
user = foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment