Skip to content

Commit f4df548

Browse files
committed
🔨 chore: added more aliases for git
1 parent 56442e8 commit f4df548

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

home/.gitconfig

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
[alias]
44
a = add
55
aa = add --all
6+
aliases = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\ \t => \\2/' | sort
67
b = branch
8+
branches = branch --sort=authordate
79
cm = commit -m
810
co = checkout
911
get = !git fetch --prune && git pull --rebase && git submodule update --init --recursive
@@ -13,22 +15,43 @@
1315
ls = ls-files
1416
ls-ignored = ls-files --ignored --others --exclude-standard
1517
m = merge
18+
pr = !gh pr
19+
prls = !gh pr list --author=@me
20+
prs = !gh pr status
21+
prv = !gh pr view
22+
prvw = !gh pr view -w
23+
rblame = !git blame -w -M -C -C -C
24+
remotes = remote -v
25+
root = !cd $(git rev-parse --show-toplevel)
1626
st = status
27+
stashes = stash list
28+
uncommit = reset --mixed HEAD~
29+
unstage = reset -q HEAD --
1730
what = show --no-patch --pretty='tformat:%h (%s, %ad)' --date=short
1831
who = shortlog --summary --numbered --no-merges
1932
[core]
33+
branch = auto
2034
editor = code --wait
35+
grep = auto
36+
interactive = auto
2137
longpaths = true
2238
pager = delta
39+
showBranch = auto
40+
status = auto
41+
ui = true
2342
[diff]
2443
tool = default-difftool
2544
colorMoved = default
2645
[difftool "default-difftool"]
2746
cmd = code --wait --diff $LOCAL $REMOTE
2847
[delta]
2948
features = catppuccin-mocha
49+
file-style = omit
50+
file-decoration-style = none
51+
hunk-label = " 󰡏 "
3052
side-by-side = true
3153
navigate = true
54+
tabs = 2
3255
true-color = always
3356
hyperlinks = true
3457
hyperlinks-file-link-format = "vscode://file/{path}:{line}"
@@ -37,7 +60,7 @@
3760
[interactive]
3861
diffFilter = delta --color-only
3962
[help]
40-
autocorrect = -1
63+
autocorrect = 1
4164
[log]
4265
abbrevCommit = true
4366
decorate = short
@@ -46,6 +69,11 @@
4669
conflictstyle = zdiff3
4770
[mergetool "code"]
4871
cmd = code --wait --merge $REMOTE $LOCAL $BASE $MERGED
72+
[pager]
73+
log = delta
74+
reflog = delta
75+
show = delta
76+
difftool = true
4977
[pull]
5078
ff = only
5179
[push]

0 commit comments

Comments
 (0)