install.fairie/dotfiles/.gitconfig

88 lines
2.5 KiB
INI
Raw Normal View History

[include]
path = ~/.local/delta/themes.gitconfig
[advice]
detachedHead = false
[alias]
c = commit
ca = commit -a
cm = commit -m
cam = commit -am
d = diff
dc = diff --cached
l = log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit
master = !git add --all && git commit -am 'Quick commit.' -n && git push origin master
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[core]
editor = vi
excludesfile = ~/.gitignore
autocrlf = input
attributesfile = ~/.gitattributes
pager = delta
[delta]
decorations = true
features = side-by-side decorations hyperlinks interactive navigate unobtrusive-line-numbers woolly-mammoth zebra-dark
hyperlinks = true
interactive = true
map-styles = bold purple => syntax magenta, bold cyan => syntax blue
navigate = true
side-by-side = true
unobtrusive-line-numbers = true
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
[diff]
colorMoved = default
ignoresubmodules = dirty
[diff "image"]
command = compare $2 $1 png:- | montage -geometry +4+4 $2 - $1 png:- | display -title \"$1\" -
[difftool]
prompt = false
[credential]
helper = cache --timeout=3600
[init]
templatedir = /Users/bzalewski/.local/git-templates
[interactive]
diffFilter = delta --color-only --features=interactive
[merge]
conflictstyle = diff3
tool = kdiff3
[pull]
rebase = true
[sendemail]
smtpserver = smtp.gmail.com
smtpuser =
smtpencryption = tls
smtpserverport = 587
smtpPass =
# smtpserver = {{ user.git_email_smtp_server | default('smtp.gmail.com') }}
# smtpuser = {{ user.git_email_smtp_user | default('') }}
# smtpencryption = {{ user.git_email_smtp_encryption | default('tls') }}
# smtpserverport = {{ user.git_email_smtp_port | default('587') }}
# smtpPass = {{ user.git_email_app_password | default('') }}
[status]
submoduleSummary = true
2022-11-01 09:31:31 -07:00
[url "https://"]
insteadOf = git://
[user]
email =
name =
# https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables
# name = {{ user.git_user_name | default('') }}
# email = {{ user.git_user_email | default('') }}
[web]
browser = google-chrome
# browser = {{ user.git_browser | default('google-chrome') }}