Skip to content

Instantly share code, notes, and snippets.

@qkdreyer
Last active Jun 3, 2016
Embed
What would you like to do?
OSX Git Configuration
[core]
excludesfile = ~/.gitignore_global
editor = subl
autocrlf = input
[user]
email = quentin.dreyer@gmail.com
name = qkdreyer
signingkey = AE749F81
[push]
default = current
[fetch]
recurseSubmodules = true
[branch]
autosetuprebase = always
[merge]
tool = sublimerge
[mergetool "sublimerge"]
cmd = subl -nw \"$REMOTE\" \"$BASE\" \"$LOCAL\" \"$MERGED\" --command \"sublimerge_diff_views\"
trustExitCode = false
[diff]
tool = sublimerge
[difftool "sublimerge"]
cmd = subl -n --wait \"$REMOTE\" \"$LOCAL\" --command \"sublimerge_diff_views {\\\"left_read_only\\\": true, \\\"right_read_only\\\": true}\"
[alias]
sync = ls | xargs -P10 -I{} git -C {} pull
deploy = "!f(){ B=${1:-deployment}; git checkout $B && git pull && git merge master && git push origin $B && git checkout master; };f"
[commit]
gpgsign = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment