-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
106 lines (80 loc) · 2.33 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[user]
name = Kesse Jones
[core]
excludesfile = ~/.gitignore_global
editor = nvim
pager = delta
hooksPath = ~/.config/git/hooks
[pull]
rebase = true
[push]
default = current
[init]
defaultBranch = main
[delta]
line-numbers = true
side-by-side = true
file-modified-label = modified:
syntax-theme = catppuccin
dark = true
[interactive]
diffFilter = delta --color-only
[alias]
a = "!~/.scripts/git/git-add.sh"
d = diff
b = branch
l = lg
s = status
f = fetch
r = "!~/.scripts/git/git-rebase.sh"
m = "!~/.scripts/git/git-merge.sh"
ll = log --abbrev-commit --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
ls = "!~/.scripts/git/git-show.sh"
ld = "!~/.scripts/git/git-log-diff.sh"
# add
aa = "add --all"
ap = "add --patch"
ai = "add --interactive"
# checkout
co = "!~/.scripts/git/git-checkout.sh"
cb = checkout -b
# discard files
cd = "!~/.scripts/git/git-discard.sh"
# commit
ci = commit
ca = commit --amend
cu = reset --soft HEAD^
tr = "commit --allow-empty -m 'Trigger CI' -n"
# push
ps = push
fp = push --force-with-lease
# pull
pl = pull
# branch
bm = branch -m
bM = branch -M
bd = "!~/.scripts/git/git-branch-delete.sh -d"
bx = "!~/.scripts/git/git-branch-delete.sh -D"
# diff
dh = diff HEAD^
dv = "!nvim -c \"DiffviewOpen\""
# rebase
rc = rebase --continue
rs = rebase --skip
ra = rebase --abort
ri = "!~/.scripts/git/git-rebase-interactive.sh"
# restore
rt = "!~/.scripts/git/git-restore-staged.sh"
# merge
ma = merge --abort
mc = merge --continue
# stash
ss = stash
sa = "!~/.scripts/git/git-stash.sh apply"
sd = "!~/.scripts/git/git-stash.sh drop"
sp = "!~/.scripts/git/git-stash.sh pop"
sl = "!git stash list | gum choose --limit 1 >/dev/null"
cx = "!git branch --merged | grep -v '\\*\\|master\\|main\\|qa\\|develop' | xargs -n 1 -r git branch -d"
[include]
path = ~/.gitconfig-user