Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
My GitConfig
[color]
ui = true
diff = true
status = true
branch = true
interactive = true
[core]
editor = $EDITOR
excludesfile = /Users/sethvargo/.gitignore
whitespace = fix
trustctime = false
[format]
pretty = %C(bold yellow)%h%Creset %s %C(bold blue)[%an]%Creset %Cgreen(%cr)
[apply]
whitespace = fix
[help]
autocorrect = 5
[push]
default = current
[branch]
autosetuprebase = always
[credential]
helper = osxkeychain
[pull]
rebase = preserve
default = current
[alias]
pr = "!f() { git fetch origin pull/$1/head:pr-$1 && git checkout pr-$1; }; f"
unreleased = "!f() { git fetch --tags && git diff $(git tag | tail -n 1); }; f"
up = !git pull origin master && git remote prune origin && git submodule update --init --recursive
graph = "!f() { git log --oneline --abbrev-commit --graph --decorate; }; f"
undo = !git reset HEAD~1 --mixed
amend = !git commit --amend
top = !git log --format=format:%an | sort | uniq -c | sort -r | head -n 20
x = "!f() { gitx; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment