Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My personal .gitconfig file
[user]
name = Example Name
email = example@example.com
[http]
sslVerify = false
[push]
default = current
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green
changed = yellow
untracked = red
[help]
autocorrect = 1
[core]
excludesfile = ~/.gitignore_global
editor = /usr/bin/vim
pager = delta
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
; ---- REQ: install git-delta
[init]
defaultBranch = master
[commit]
template = ~/.stCommitMsg
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
line-numbers = true
side-by-side = true
features = woolly-mammoth
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[include]
path = .delta.themes.gitconfig
; ---- REQ: install sourcetree
;[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