1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2025-04-26 03:45:21 -04:00
dotfiles/git/.gitconfig

73 lines
1.7 KiB
INI

[core]
editor = code --wait
pager = delta
excludesfile = ~/.gitignore
# Make `git rebase` safer on macOS
# More info: <http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/>
trustctime = false
[user]
email = jake@jarv.is
name = Jake Jarvis
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHeuNlSZmqygM4XN7++pmfrNUsFzAjlxaYHoO/JXVdT5
[credential "https://github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[gpg]
format = ssh
[gpg "ssh"]
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign
[init]
defaultBranch = main
[push]
default = tracking
gpgSign = if-asked
[pull]
rebase = true
[commit]
gpgsign = true
[rebase]
autoSquash = true
autoStash = true
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[interactive]
diffFilter = delta --color-only --features=interactive
[alias]
undo = reset --soft HEAD~1
pom = push origin main
# Show verbose output about tags, branches, remotes, aliases and contributors
tags = tag -l
branches = branch -a
remotes = remote -v
aliases = config --get-regexp alias
contributors = shortlog --summary --numbered
new = !git init && git symbolic-ref HEAD refs/heads/main
[github]
user = jakejarvis
[hub]
host = github.com
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[mergetool]
keepBackup = true
[color]
ui = auto
[delta]
features = decorations
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
hunk-header-style = omit
line-numbers = true
syntax-theme = base16