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:
parent
7f9beecb4b
commit
1aae8be084
|
@ -1,13 +1,12 @@
|
||||||
[user]
|
|
||||||
email = git@glfmn.io
|
|
||||||
name = Gwen Lofman
|
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
editor = "vi"
|
editor = "vi"
|
||||||
excludesfile = ~/.gitignore_global
|
excludesfile = ~/.gitignore_global
|
||||||
attributesfile = ~/.gitattributes_global
|
attributesfile = ~/.gitattributes_global
|
||||||
pager = delta --dark
|
pager = delta --dark
|
||||||
|
|
||||||
[filter "lfs"]
|
[filter "lfs"]
|
||||||
clean = git-lfs clean -- %f
|
clean = git-lfs clean -- %f
|
||||||
smudge = git-lfs smudge -- %f
|
smudge = git-lfs smudge -- %f
|
||||||
|
@ -37,7 +36,6 @@ required = true
|
||||||
fx = !git fixup
|
fx = !git fixup
|
||||||
# Grab a remote branch and track it
|
# Grab a remote branch and track it
|
||||||
get = checkout --track
|
get = checkout --track
|
||||||
gt = !git get
|
|
||||||
|
|
||||||
# abbreviated commands
|
# abbreviated commands
|
||||||
st = status -sbu
|
st = status -sbu
|
||||||
|
@ -51,7 +49,7 @@ required = true
|
||||||
ap = add -p
|
ap = add -p
|
||||||
ps = push
|
ps = push
|
||||||
pu = pull
|
pu = pull
|
||||||
ds = diff --stat
|
ds = diff --stat
|
||||||
dc = diff --cached
|
dc = diff --cached
|
||||||
|
|
||||||
# logging commands
|
# logging commands
|
||||||
|
@ -73,7 +71,15 @@ required = true
|
||||||
fll = !git lgl --follow -- # long-format commits
|
fll = !git lgl --follow -- # long-format commits
|
||||||
fst = !git lst --follow -- # stat-style commits
|
fst = !git lst --follow -- # stat-style commits
|
||||||
fpa = !git lpa --follow -- # full patch commits
|
fpa = !git lpa --follow -- # full patch commits
|
||||||
|
|
||||||
[commit]
|
[commit]
|
||||||
verbose = true
|
verbose = true
|
||||||
|
|
||||||
[help]
|
[help]
|
||||||
autocorrect = 10
|
autocorrect = 10
|
||||||
|
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
|
||||||
|
[include]
|
||||||
|
path = ~/.gitconfig.user
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
[user]
|
||||||
|
name = Gwen Lofman
|
||||||
|
email = git@glfmn.io
|
||||||
|
signingkey = git@glfmn.io
|
||||||
|
|
||||||
|
[commit]
|
||||||
|
gpgSign = true
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
gpgSign = true
|
1
setup.sh
1
setup.sh
|
@ -34,6 +34,7 @@ ln -sbv "$DIR/profiles/.alacritty.yml" ~
|
||||||
# Git
|
# Git
|
||||||
echo -e "\n\t${BOLD}git...${NC}\n"
|
echo -e "\n\t${BOLD}git...${NC}\n"
|
||||||
ln -sbv "$DIR/git/.gitconfig" ~
|
ln -sbv "$DIR/git/.gitconfig" ~
|
||||||
|
ln -sbv "$DIR/git/.gitconfig.user" ~
|
||||||
ln -sbv "$DIR/git/.gitignore_global" ~
|
ln -sbv "$DIR/git/.gitignore_global" ~
|
||||||
ln -sbv "$DIR/git/.gitattributes_global" ~
|
ln -sbv "$DIR/git/.gitattributes_global" ~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue