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
+17 -25
View File
@@ -3,43 +3,37 @@
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 c = commit
cs = commit --signoff cs = commit --signoff
ca = commit --amend ca = commit --amend
cas = commit --amend --signoff cas = commit --amend --signoff
can = commit --amend --no-edit can = commit --amend --no-edit
cans == commit --amend --no-edit --signoff cans = commit --amend --no-edit --signoff
ci = commit --interactive ci = commit --interactive
cis = commit --amend --signoff cis = commit --amend --signoff
cm = commit --message cm = commit --message
cms = commit --signoff --message cms = commit --signoff --message
cv = commit --verbose cv = commit --verbose
cvs = commit --verbose --signoff cvs = commit --verbose --signoff
cl = clone cl = clone
clb = clone --bare clb = clone --bare
clm = clone --mirror clm = clone --mirror
clr = clone --recurse-submodules clr = clone --recurse-submodules
d = diff d = diff
dc = diff --cached dc = diff --cached
ds = diff --staged ds = diff --staged
dw = diff --word-diff dw = diff --word-diff
f = fetch --atomic f = fetch --atomic
F = fetch --force F = fetch --force
fa = fetch --all fa = fetch --all
fp = fetch --atomic --prune --prune-tags fp = fetch --atomic --prune --prune-tags
fpa = fetch --prune --prune-tags --all fpa = fetch --prune --prune-tags --all
l = log l = log
lc = log --pretty=format:'- %s by %an %h' --no-merges lc = log --pretty=format:'- %s by %an %h' --no-merges
lg = log --graph lg = log --graph
@@ -47,23 +41,17 @@
lo = log --oneline lo = log --oneline
lp = log --patch lp = log --patch
lt = log --topo-order lt = log --topo-order
o = checkout o = checkout
ob = checkout -b ob = checkout -b
p = push p = push
pf = push --force pf = push --force
puh = push -u origin HEAD puh = push -u origin HEAD
r = rebase r = rebase
ri = rebase --interactive ri = rebase --interactive
rim = rebase --interactive origin/master rim = rebase --interactive origin/master
s = status --short --branch s = status --short --branch
branch-list-merged = "!git branch --merged master | grep -v -E '(origin|master)'" branch-list-merged = "!git branch --merged master | grep -v -E '(origin|master)'"
branch-delete-merged = "!git branch-list-merged | xargs git branch --delete" branch-delete-merged = "!git branch-list-merged | xargs git branch --delete"
unstage = reset HEAD unstage = reset HEAD
undo-commit = reset --soft HEAD^ undo-commit = reset --soft HEAD^
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD` set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
@@ -74,6 +62,7 @@
[commit] [commit]
gpgsign = true gpgsign = true
signoff = true
[core] [core]
editor = nvim editor = nvim
@@ -82,6 +71,12 @@
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
@@ -90,11 +85,11 @@
[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
@@ -124,7 +119,7 @@
diffFilter = delta --color-only diffFilter = delta --color-only
[merge] [merge]
conflictstyle = diff3 conflictstyle = zdiff3
[pull] [pull]
autosetupmerge = true autosetupmerge = true
@@ -132,7 +127,7 @@
rebase = true rebase = true
[push] [push]
default = current default = simple
[rerere] [rerere]
enabled = true enabled = true
@@ -142,10 +137,7 @@
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: