Files
dotfiles/.config/git/config
Julian Prein f44125937f git:alias: Add checkout-worktree
Reuse the autoloadable function as git alias. This way
`git-checkout-worktree` as well as `git checkout-worktree` are possible.
2022-03-31 15:21:22 +02:00

56 lines
1.3 KiB
Plaintext

[advice]
addIgnoredFile = off
detachedHead = off
[alias]
branches = track
checkout-worktree = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-checkout-worktree\""
filter-repo = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/git/git-filter-repo/git-filter-repo\""
fixes = log -1 --pretty=fixes
root = rev-parse --show-toplevel
signoff = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-signoff\""
spull = "!__git_spull() { git pull \"$@\" && git submodule sync --recursive && git submodule update --init --recursive; }; __git_spull"
track = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-track\""
[blame]
date = short
[branch]
autosetuprebase = always
[color "status"]
added = 076
untracked = 014
[commit]
gpgsign = true
verbose = true
[core]
abbrev = 12
excludesfile = ~/.config/git/ignore
pager = diff-so-fancy | less --tabs=8 -Rg -+FX
[diff]
submodule = log
tool = nvimdiff
[difftool "meld"]
path = /usr/bin/meld
[include]
path = user.config
[init]
defaultBranch = main
[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
[user]
email = druckdev@protonmail.com
name = Julian Prein
signingkey = C0A44F69F2E29F6586C86B96CA6B3A516FAC2555