Skip to content

Instantly share code, notes, and snippets.

@davebeach
Created June 13, 2018 23:37
Show Gist options
  • Save davebeach/bd2e26ccfb6698c6a711405b488a40ad to your computer and use it in GitHub Desktop.
Save davebeach/bd2e26ccfb6698c6a711405b488a40ad to your computer and use it in GitHub Desktop.
my .gitconfig
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[core]
excludesfile = /Users/davidbeach/.gitignore_global
editor = subl -n -w
autocrlf = input
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Users/davidbeach/Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[alias]
stat = 'log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative'
mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
[color]
ui = auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment