Skip to content

Instantly share code, notes, and snippets.

@JonathonReinhart
Last active January 22, 2016 14:33
Show Gist options
  • Save JonathonReinhart/5e8bd0e8d307b2ce5eb9 to your computer and use it in GitHub Desktop.
Save JonathonReinhart/5e8bd0e8d307b2ce5eb9 to your computer and use it in GitHub Desktop.
My Git config
[user]
email = jonathon.reinhart@gmail.com
name = Jonathon Reinhart
[color]
ui = true
[core]
# I can exclude my own editor's files; no need to include in project .gitignore
excludesfile = ~/.gitignore_global
editor = vim
[push]
default = simple
[pull]
# Auto --rebase on pull (git >= 1.7.9)
rebase = true
[fetch]
# Auto --prune on fetch or pull (git >= 1.8.5)
prune = true
[alias]
# http://stackoverflow.com/a/9074343/119527
graph = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
sha = rev-parse --short=8 HEAD
# Vim swap files
*.swp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment