Files
dotfiles/.config/git/config

100 lines
2.6 KiB
Plaintext

[advice]
addIgnoredFile = off
detachedHead = off
[alias]
# Automatically fixup/squash marked commits without opening the
# git-rebase-todo
autosquash = -c sequence.editor=/bin/true rebase -i --autosquash
autofixup= autosquash
branches = track
c = commit
changes = flog HEAD...FETCH_HEAD
co = checkout
cow = checkout-worktree
f = fetch
fixes = log -1 --pretty=fixes
l = log
p = push
root = rev-parse --show-toplevel
signoff = rebase --signoff
ss = stash
ssh-and-https = https-and-ssh
# Implemented as zsh functions or external programs
checkout-worktree = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-checkout-worktree\""
commit-last-msg = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-commit-last-msg\""
filter-repo = !git-filter-repo
flog = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/glog\""
https-and-ssh = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-https-and-ssh\""
last-changed = "!cd \"$GIT_PREFIX\"; \"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-last-changed\""
make-fork = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-make-fork\""
ssync = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-ssync\""
submodule-rm = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-submodule-rm\""
track = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-track\""
perm-stash = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-perm-stash\""
[blame]
date = short
[branch]
autosetuprebase = always
[color "status"]
added = 076
untracked = 014
[commit]
gpgsign = true
verbose = true
[core]
abbrev = 12
pager = diff-so-fancy \
| less --tabs=8 --RAW-CONTROL-CHARS --quit-if-one-screen
[diff]
# Color moved lines differently
colorMoved = default
# No rename limit, propagates to merge. and status.renameLimit too
renameLimit = 0
submodule = log
tool = nvimdiff
[difftool "meld"]
path = /usr/bin/meld
[fetch]
output = compact
prune = true
pruneTags = false
parallel = 0
[gpg]
program = gpg.loopback
[init]
defaultBranch = main
[interactive]
diffFilter = diff-so-fancy --patch
# Might need a `sudo cpan Term::ReadKey`
singleKey = true
[log]
follow = true
[merge]
log = true
suppressDest = *
[pretty]
fixes = Fixes: %h (\"%s\")
[pull]
ff = yes
rebase = true
[push]
default = current
[rebase]
autostash = true
[rerere]
enabled = true
[status]
submodulesummary = true
[submodule]
fetchJobs = 0
[user]
email = druckdev@protonmail.com
name = Julian Prein
signingkey = C0A44F69F2E29F6586C86B96CA6B3A516FAC2555
[include]
path = user.config