Skip to content

Instantly share code, notes, and snippets.

@iwat
Created November 10, 2017 08:08
Show Gist options
  • Save iwat/ca1c95be11ce5d1c121c11727fdd0c63 to your computer and use it in GitHub Desktop.
Save iwat/ca1c95be11ce5d1c121c11727fdd0c63 to your computer and use it in GitHub Desktop.
My Git Config
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name =
email =
signingkey = BD277695981F717A
[core]
attributesfile = /Users/iwat/.gitattributes_global
excludesfile = /Users/iwat/.gitignore_global
pager =
[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
[commit]
gpgsign = true
template = /Users/iwat/.stCommitMsg
[gpg]
program = gpg
[merge]
tool = fugitive
[mergetool "fugitive"]
cmd = vim -f -c \"Gdiff\" \"$MERGED\"
[alias]
fix = !git diff --name-only --relative -z --diff-filter=U | xargs -0 ${EDITOR}
release-tree = !"_MERGE_BASE=`git merge-base origin/develop origin/master`; git log --oneline --graph ${_MERGE_BASE}~..origin/develop ${_MERGE_BASE}~..origin/master `git rev-list --tags --max-count=1`"
.*.swp
.DS_Store
.vscode
tags

My personal git config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment