dotfiles/git/.config/git/config

87 lines
1.5 KiB
Plaintext
Raw Normal View History

2021-11-05 03:18:36 +00:00
[include]
path = ~/.config/git/secret
# include something like this in the above file:
#[sendemail]
# smtpserver = mail.example.com
# smtpuser =
# smtpencryption = tls
# smtpserverport = 587
# annotate = yes
[user]
email = me@earne.link
name = earnest ma
signingkey = BF66E5C8A1416E2A857C774CA343F43342EB6E2A
[core]
autocrlf = false
quotepath = false
commitGraph = true
longpaths = true
editor = nvim
hooksPath = ~/.config/git/hooks
2021-12-09 15:50:11 +00:00
excludesfile = ~/.config/git/ignore
2021-11-05 03:18:36 +00:00
[diff]
tool = bat
[init]
defaultBranch = main
[commit]
gpgsign = true
[fetch]
prune = true
[pull]
2022-11-04 21:18:36 +00:00
# ff = only
rebase = true
2021-11-05 03:18:36 +00:00
[push]
default = current
2022-08-01 13:53:33 +00:00
autoSetupRemote = true
2021-11-05 03:18:36 +00:00
[status]
submodulesummary = true
[help]
autocorrect = 20
[gc]
writeCommitGraph = true
[color]
ui = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
checkup = !git log -1 && (git fetch --all 2>/dev/null || true) && git status
fuckit = reset --hard
setup = !git init && git commit --allow-empty -m \"Initial commit\"
fpr = !sh -c 'git fetch ${2:-origin} +refs/pull/$1/head:refs/remotes/${2:-origin}/pr/$1 && git checkout pr/$1' -
2021-11-05 03:18:36 +00:00
e = commit --allow-empty-message -m ''
br = branch
co = checkout
ca = commit --amend
cd = commit -eF .git/draft
ce = commit --allow-empty-message -m ''
cm = commit
di = diff
lg = log
mg = merge
pu = push
pl = pull
st = status
2021-11-07 23:19:39 +00:00
[credential]
helper = store --file ~/.config/git/credentials
2022-11-12 03:15:49 +00:00
[rebase]
updateRefs = true