Skip to content

Instantly share code, notes, and snippets.

@elulcao
Last active December 29, 2021 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elulcao/6cedb7f03a89a269374a000a89a7e226 to your computer and use it in GitHub Desktop.
Save elulcao/6cedb7f03a89a269374a000a89a7e226 to your computer and use it in GitHub Desktop.
gitconfig favorite configuration
[user]
email = elulcao@icloud.com
name = elulcao
signingkey =
[core]
excludesfile = ~/.gitignore_global
editor = vim
precomposeunicode = true
ignorecase = true
logallrefupdates = true
bare = false
repositoryformatversion = 0
filemode = false
autocrlf = input
safecrlf = false
[commit]
template = ~/.gitmessage
gpsign = true
gpgsign = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[diff]
tool = vimdiff
[color]
branch = auto
diff = auto
status = auto
showbranch = auto
ui = true
[init]
defaultBranch = main
[fetch]
prune = true
[push]
default = current
[credential]
helper = osxkeychain
[gpg]
program = gpg2
[includeIf "gitdir:~/Work/"]
path = ~/.gitconfig_work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment