-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitconfig
141 lines (141 loc) · 3.92 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[advice]
skippedCherryPicks = false
[alias]
a = add
amc = "!xclip -out -selection clipboard | git am $@"
branches = branch -r --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)'
ca = commit -a
cam = commit -am
c = commit
cpa = cherry-pick --abort
cpc = cherry-pick --continue
cp = cherry-pick --signoff
dc = diff --cached
dcs = diff --stat --cached
d = diff
dsc = diff --stat --cached
ds = diff --stat
expire-reflog = "!git reflog expire --expire=\"$(date)\" --all"
export = archive --format zip --output
fix = ca --fixup
ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ >> .gitignore ;}; gi"
kang = commit --amend --reset-author
loa = log --oneline --author='Harsh Shandilya'
loc = log --oneline --committer='Harsh Shandilya'
lof = log --format=fixes
lo = log --oneline
los = log --oneline --stat
lst = ls-tree --full-tree -r HEAD
pf = push --force-with-lease
publish = "!git push origin --set-upstream $(git rev-parse --abbrev-ref HEAD)"
rc = rebase --continue
reword = "!EDITOR='sed -i -re s/^pick/e/' sh -c 'git rebase -i $1 && while test -f .git/rebase-merge/interactive; do git commit --amend && git rebase --continue;done' -"
ru = remote update --prune
rv = remote -v
squash = rebase -i --autosquash
ss = show --stat
s = status
suicide = reset --hard
su = submodule update --init --recursive
sw = "!git switch $(git branch | fzf | tr -d '*[:space:]')"
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[color]
ui = true
[core]
abbrev = 12
[credential]
helper = cache --timeout=3000
# https://github.com/dandavison/delta/blob/master/themes.gitconfig
[delta "woolly-mammoth"]
# author: https://github.com/Kr1ss-XD
commit-decoration-style = 232 130 box
commit-style = 232 bold italic 130
dark = true
file-added-label = [+]
file-copied-label = [C]
file-decoration-style = "#606018" overline
file-modified-label = [M]
file-removed-label = [-]
file-renamed-label = [R]
file-style = 232 bold 184
hunk-header-decoration-style = none
hunk-header-style = syntax bold italic 237
line-numbers = true
line-numbers-left-format = "{nm:>1}┊"
line-numbers-left-style = red
line-numbers-minus-style = red italic black
line-numbers-plus-style = green italic black
line-numbers-right-format = "{np:>1}┊"
line-numbers-right-style = green
line-numbers-zero-style = "#545474" italic
minus-emph-style = syntax bold "#780000"
minus-style = syntax "#400000"
plus-emph-style = syntax bold "#007800"
plus-style = syntax "#004000"
syntax-theme = zenburn
whitespace-error-style = "#280050" reverse
zero-style = syntax
blame-format = "{author:<18} ({commit:>7}) ┊{timestamp:^16}┊ "
blame-palette = "#101010 #200020 #002800 #000028 #202000 #280000 #002020 #002800 #202020"
[delta]
navigate = true
features = woolly-mammoth
[diff]
colorMoved = default
[diff "gpg"]
textconv = gpg --no-tty --decrypt -q
[fetch]
showForcedUpdates = true
[gc]
auto = 0
[http]
postBuffer = 524288000
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only
[log]
follow = true
[maintenance]
repo = /home/msfjarvis/git-repos/nixpkgs/src
[maintenance "commit-graph"]
enable = true
[maintenance "gc"]
enable = true
[maintenance "incremental-repack"]
enable = true
[maintenance "loose-objects"]
enable = true
[maintenance "pack-refs"]
enable = true
[maintenance "prefetch"]
enable = true
[merge]
conflictstyle = diff3
log = true
[pager]
diff = delta
show = delta
[pretty]
fixes = Fixes: %h (\"%s\")
[pull]
rebase = true
[push]
autoSetupRemote = true
default = simple
[rerere]
enabled = true
[user]
email = me@msfjarvis.dev
name = Harsh Shandilya