Sets up origin so that it fetches over https but pushes over ssh. This way unlocking the ssh key is only needed when really necessary.
94 lines
2.3 KiB
Plaintext
94 lines
2.3 KiB
Plaintext
[advice]
|
|
addIgnoredFile = off
|
|
detachedHead = off
|
|
[alias]
|
|
# Automatically fixup/squash marked commits without opening the
|
|
# git-rebase-todo
|
|
autofixup = -c sequence.editor=/bin/true rebase -i --autosquash
|
|
autosquash = autofixup
|
|
|
|
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\""
|
|
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\""
|
|
[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]
|
|
submodule = log
|
|
tool = nvimdiff
|
|
[difftool "meld"]
|
|
path = /usr/bin/meld
|
|
[fetch]
|
|
output = compact
|
|
prune = true
|
|
pruneTags = true
|
|
parallel = 0
|
|
[gpg]
|
|
program = gpg.loopback
|
|
[init]
|
|
defaultBranch = main
|
|
[interactive]
|
|
# disbaled for now, as not compatible with git v2.37. See:
|
|
# https://github.com/so-fancy/diff-so-fancy/issues/437
|
|
# diffFilter = diff-so-fancy --patch
|
|
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
|