Skip to content

Instantly share code, notes, and snippets.

@jsocol
Created December 30, 2010 15:37
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 jsocol/759907 to your computer and use it in GitHub Desktop.
Save jsocol/759907 to your computer and use it in GitHub Desktop.
The important parts of my .gitconfig
[color]
diff = auto
status = auto
branch = auto
grep = auto
[core]
excludesfile = /home/james/.gitignore
[alias]
a = add
ci = commit
co = checkout
br = branch
st = status
undo = checkout --
gr = grep --color -p -n --full-name
cp = cherry-pick
cdiff = log -p -1 --stat
cpp = !sh -c "git log -p -1 $1 "
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
p = log -1 -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment