dotfiles/.gitconfig

70 lines
1.6 KiB
INI

[user]
name = Stefen Wakefield
email = me@xstefen.dev
signingkey = 0xF52B5BFA7BD26BB4
[core]
abbrev = 12
editor = nano
[commit]
gpgsign = true
[format]
signoff = true
[merge]
log = true
renamelimit = 7297
tool = meld
[mergetool]
keepbackup = false
[mergetool "meld"]
cmd = meld "$LOCAL" "$MERGED" "$REMOTE" --output "$MERGED"
[diff]
tool = meld
[difftool]
prompt = false
[difftool "meld"]
cmd = meld "$LOCAL" "$REMOTE"
[credential]
helper = cache --timeout=7200
[alias]
co = checkout
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
cob = checkout -b
cm = !git add -A && git commit -m
save = !git add -A && git commit -m 'SAVEPOINT'
wip = commit -am "WIP"
undo = reset HEAD~1 --mixed
amend = commit -a --amend
cp = cherry-pick
cpa = cherry-pick --abort
cpc = cherry-pick --continue
yolo = !git add -A && git commit -m "$(curl --silent --fail https://whatthecommit.com/index.txt)"
[advice]
detachedhead = false
[pull]
rebase = true
[url "git@git.sr.ht:"]
pushInsteadOf = https://git.sr.ht/
[url "git@github.com:"]
pushInsteadOf = git://github.com/
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[http]
postBuffer = 524288000
cookiefile = /home/xstefen/.gitcookies
[safe]
directory = /mnt/files/Downloads/Fido