Skip to content

Instantly share code, notes, and snippets.

@mguillermin
Created November 21, 2013 10:07
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 mguillermin/7579074 to your computer and use it in GitHub Desktop.
Save mguillermin/7579074 to your computer and use it in GitHub Desktop.
.gitconfig
[color]
status = auto
branch = auto
interactive = auto
diff = auto
[alias]
co = checkout
br = branch
ci = commit
st = status
d = diff
dc = diff --cached
unstage = reset HEAD --
last = log -1 HEAD
tree = log --oneline --branches --graph --decorate
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
le = log --oneline --decorate
filelog = log -u
fl = log -u
f = "!git ls-files | grep -i"
grep = grep -Ii
gr = grep -Ii
la = "!git config -l | grep alias | cut -c 7-"
[merge]
tool = opendiff
[core]
excludesfile = /Users/mguillermin/.global_ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment