Update git config

1. Sign commits and tags by default
2. Fix formatting in git config
3. Split gitconfig to keep user and key info separate
This commit is contained in:
Gwen 2022-07-19 15:06:02 -04:00
parent 7f9beecb4b
commit 1aae8be084
Signed by: ludens
GPG Key ID: E34842D2CA8E4AC8
3 changed files with 22 additions and 5 deletions

View File

@ -1,13 +1,12 @@
[user]
email = git@glfmn.io
name = Gwen Lofman
[push]
default = simple
[core]
editor = "vi"
excludesfile = ~/.gitignore_global
attributesfile = ~/.gitattributes_global
pager = delta --dark
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
@ -37,7 +36,6 @@ required = true
fx = !git fixup
# Grab a remote branch and track it
get = checkout --track
gt = !git get
# abbreviated commands
st = status -sbu
@ -51,7 +49,7 @@ required = true
ap = add -p
ps = push
pu = pull
ds = diff --stat
ds = diff --stat
dc = diff --cached
# logging commands
@ -73,7 +71,15 @@ required = true
fll = !git lgl --follow -- # long-format commits
fst = !git lst --follow -- # stat-style commits
fpa = !git lpa --follow -- # full patch commits
[commit]
verbose = true
[help]
autocorrect = 10
[init]
defaultBranch = main
[include]
path = ~/.gitconfig.user

10
git/.gitconfig.user Normal file
View File

@ -0,0 +1,10 @@
[user]
name = Gwen Lofman
email = git@glfmn.io
signingkey = git@glfmn.io
[commit]
gpgSign = true
[tag]
gpgSign = true

View File

@ -34,6 +34,7 @@ ln -sbv "$DIR/profiles/.alacritty.yml" ~
# Git
echo -e "\n\t${BOLD}git...${NC}\n"
ln -sbv "$DIR/git/.gitconfig" ~
ln -sbv "$DIR/git/.gitconfig.user" ~
ln -sbv "$DIR/git/.gitignore_global" ~
ln -sbv "$DIR/git/.gitattributes_global" ~