Skip to content

Instantly share code, notes, and snippets.

@pcottle
Created December 5, 2012 17:40
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 pcottle/4217796 to your computer and use it in GitHub Desktop.
Save pcottle/4217796 to your computer and use it in GitHub Desktop.
gitconfig
[user]
name = Peter Cottle
email = petermcottle@gmail.com
[core]
editor = /usr/bin/vim -f
excludesfile = /Users/pcottle/.gitignore_global
[alias]
unstage = reset HEAD --
[help]
autocorrect = 1
[color]
ui = 1
[alias]
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
gr = grep -Ii
done = "!f() { git branch | grep "$1" | cut -c 3- | grep -v done | xargs -I{} git branch -m {} done-{}; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment