feat: optimize gitconfig

Signed-off-by: Anthony Oteri <4360016+anthonyoteri@users.noreply.github.com>
This commit is contained in:
Anthony Oteri
2025-11-10 08:01:48 -05:00
parent 6ad478aa80
commit 7ab7172424
+101 -109
View File
@@ -1,151 +1,143 @@
[alias] [alias]
a = add a = add
aa = add --all aa = add --all
ap = add --patch ap = add --patch
au = add --update au = add --update
b = branch
b = branch ba = branch --all
ba = branch --all bd = branch --delete
bd = branch --delete bD = branch --delete --force
bD = branch --delete --force bm = branch --move
bm = branch --move bM = branch --move --force
bM = branch --move --force c = commit
cs = commit --signoff
c = commit ca = commit --amend
cs = commit --signoff cas = commit --amend --signoff
ca = commit --amend can = commit --amend --no-edit
cas = commit --amend --signoff cans = commit --amend --no-edit --signoff
can = commit --amend --no-edit ci = commit --interactive
cans == commit --amend --no-edit --signoff cis = commit --amend --signoff
ci = commit --interactive cm = commit --message
cis = commit --amend --signoff cms = commit --signoff --message
cm = commit --message cv = commit --verbose
cms = commit --signoff --message cvs = commit --verbose --signoff
cv = commit --verbose cl = clone
cvs = commit --verbose --signoff clb = clone --bare
clm = clone --mirror
cl = clone clr = clone --recurse-submodules
clb = clone --bare d = diff
clm = clone --mirror dc = diff --cached
clr = clone --recurse-submodules ds = diff --staged
dw = diff --word-diff
d = diff f = fetch --atomic
dc = diff --cached F = fetch --force
ds = diff --staged fa = fetch --all
dw = diff --word-diff fp = fetch --atomic --prune --prune-tags
fpa = fetch --prune --prune-tags --all
f = fetch --atomic l = log
F = fetch --force lc = log --pretty=format:'- %s by %an %h' --no-merges
fa = fetch --all lg = log --graph
fp = fetch --atomic --prune --prune-tags lk = log --graph --topo-order --abbrev-commit --date=short --decorate --all --boundary --pretty=format:'%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn]%Creset'
fpa = fetch --prune --prune-tags --all lo = log --oneline
lp = log --patch
l = log lt = log --topo-order
lc = log --pretty=format:'- %s by %an %h' --no-merges o = checkout
lg = log --graph ob = checkout -b
lk = log --graph --topo-order --abbrev-commit --date=short --decorate --all --boundary --pretty=format:'%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn]%Creset' p = push
lo = log --oneline pf = push --force
lp = log --patch puh = push -u origin HEAD
lt = log --topo-order r = rebase
ri = rebase --interactive
o = checkout rim = rebase --interactive origin/master
ob = checkout -b s = status --short --branch
branch-list-merged = "!git branch --merged master | grep -v -E '(origin|master)'"
p = push branch-delete-merged = "!git branch-list-merged | xargs git branch --delete"
pf = push --force unstage = reset HEAD
puh = push -u origin HEAD undo-commit = reset --soft HEAD^
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
r = rebase
ri = rebase --interactive
rim = rebase --interactive origin/master
s = status --short --branch
branch-list-merged = "!git branch --merged master | grep -v -E '(origin|master)'"
branch-delete-merged = "!git branch-list-merged | xargs git branch --delete"
unstage = reset HEAD
undo-commit = reset --soft HEAD^
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
[color] [color]
ui = auto ui = auto
status = auto status = auto
[commit] [commit]
gpgsign = true gpgsign = true
signoff = true
[core] [core]
editor = nvim editor = nvim
autocrlf = input autocrlf = input
excludesfile = ~/.gitignore excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes attributesfile = ~/.gitattributes
pager = delta pager = delta
[credential]
helper = cache --timeout 21600
helper = oauth
helper = !/opt/homebrew/bin/gh auth git-credential
helper = !/usr/bin/glab auth git-credential
[credential "https://github.com"] [credential "https://github.com"]
helper = !/opt/homebrew/bin/gh auth git-credential helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gitlab.oteri.xyz"] [credential "https://gitlab.oteri.xyz"]
helper = !/usr/bin/glab auth git-credential helper = !/usr/bin/glab auth git-credential
[delta] [delta]
line-numbers = true line-numbers = true
syntax-theme = Dracula syntax-theme = Gruvbox
plus-style = "syntax #2A363B" plus-style = "syntax #3c3836"
plus-emph-style = "syntax #2D4E45" plus-emph-style = "syntax #504945"
minus-style = "syntax #3B2C37" minus-style = "syntax #282828"
minux-emph-style = "syntax #613038" minux-emph-style = "syntax #fb4934"
[diff] [diff]
colorMoved = default colorMoved = default
[fetch] [fetch]
prune = true prune = true
[filter "lfs"] [filter "lfs"]
clean = git-lfs clean -- %f clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f smudge = git-lfs smudge -- %f
process = git-lfs filter-process process = git-lfs filter-process
required = true required = true
[gpg] [gpg]
program = gpg program = gpg
[help] [help]
autocorrect = 10 autocorrect = 10
[include] [include]
path = ~/.gitconfig.local path = ~/.gitconfig.local
[init] [init]
defaultBranch = master defaultBranch = master
[interactive] [interactive]
diffFilter = delta --color-only diffFilter = delta --color-only
[merge] [merge]
conflictstyle = diff3 conflictstyle = zdiff3
[pull] [pull]
autosetupmerge = true autosetupmerge = true
autosetuprebase = true autosetuprebase = true
rebase = true rebase = true
[push] [push]
default = current default = simple
[rerere] [rerere]
enabled = true enabled = true
[user] [user]
name = Anthony Oteri name = Anthony Oteri
email = 4360016+anthonyoteri@users.noreply.github.com email = 4360016+anthonyoteri@users.noreply.github.com
signingkey = D0B1B355AF8E6121 signingkey = D0B1B355AF8E6121
# vim: set commentstring=#\ %s:
[credential]
helper = cache --timeout 21600
helper = oauth
[safe] [safe]
directory = * directory = *
# vim: set commentstring=#\ %s: