Skip to content

Instantly share code, notes, and snippets.

@danemacaulay
Created June 25, 2015 16:19
Show Gist options
  • Save danemacaulay/21d64bd262616f91b9d3 to your computer and use it in GitHub Desktop.
Save danemacaulay/21d64bd262616f91b9d3 to your computer and use it in GitHub Desktop.
Git config
[user]
name = Dane Macaulay
email = MacaulayD@DNB.com
[core]
excludesfile = /Users/danemacaulay/.gitignore_global
editor = subl -n -w
ignorecase = false
[pager]
log = diff-highlight | less
show = diff-highlight | less
diff = diff-highlight | less
[remote "origin"]
receivepack = git receive-pack
[alias]
glog = log --graph --oneline
co = checkout
cm = commit
st = status
changes=diff --name-status -r
diffstat=diff --stat -r
br = branch
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
[push]
default = current
[color]
ui = true
[credential]
helper = osxkeychain
[url "https://"]
insteadOf = git://
[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
[http]
postBuffer = 16M
[rerere]
enabled = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment