Skip to content

Instantly share code, notes, and snippets.

@atuttle
Created March 9, 2016 13:57
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 atuttle/05234da9e48128eb540d to your computer and use it in GitHub Desktop.
Save atuttle/05234da9e48128eb540d to your computer and use it in GitHub Desktop.
My ~/.gitconfig (with sensitive portions removed)
[color]
ui = auto
[core]
autocrlf = input
excludesfile = /Users/atcodes/.gitignore_global
[push]
default = tracking
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr,%an)%Creset' --abbrev-commit --date=relative
st = status -sb
ignored = ls-files --others -i --exclude-standard
unstage = reset HEAD
df = diff --color-words
yolo = !git add -A . && git commit -m "YOLO" && git push origin master
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment