-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprivate_dot_gitconfig
More file actions
164 lines (135 loc) · 4.89 KB
/
Copy pathprivate_dot_gitconfig
File metadata and controls
164 lines (135 loc) · 4.89 KB
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[user]
name = Lowe Schmidt
[gpg]
format = ssh
[commit]
gpgsign = true
[includeIf "gitditr:**/github.com/ICO-Engineering/**.git"]
path = ~/.gitconfig.work
[includeIf "gitdir:**gitlab.imperva.local/**.git"]
path = ~/.gitconfig.work
[include]
path = ~/.gitconfig.personal
[branch]
autosetupmerge = true
[core]
excludesfile = ~/.gitignore_global
attributesfile = ~/.gitattributes
autocrlf = input
[interactive]
diffFilter = delta --color-only
[push]
default = simple
followTags = true
[diff]
compactionHeuristics = true
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[merge]
ff = only
conflictStyle = zdiff3
[status]
showUntrackedFiles = all
[transfer]
fsckobjects = true
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[alias]
a = add
br = branch
cafu = commit --amend --fixup HEAD~
ci = commit
cl = clone
co = checkout
df = difftool
dlog = "!f() { GIT_EXTERNAL_DIFF=difft git log -p --ext-diff $@;}; f"
glog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
home = rev-parse --show-toplevel
l50 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-50s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R"
l80 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-80s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R"
lcrev = log --reverse --no-merges --stat @{1}
lg = log -p
lg50 = "!git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-50s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R"
lg80 = "!git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-80s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R"tool = meld
praise = blame
prune = fetch --prune
ss = status -s
st = status
stash-all = stash save --include-untracked
undo = reset --soft ^HEAD
rebiam = rebase -i --autosquash origin/main
wip = rebase -i @{u}
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = 11
frag = magenta bold
old = red bold
new = green bold
commit = yellow bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[github]
user = lsc
[fetch]
prune = true
[credential]
helper = store
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[pull]
ff = only
[init]
defaultBranch = main
[url "https://user@hostname"]
insteadOf = ssh://git@hostname
[credential "https://github.com"]
helper = !gh auth git-credential
[hook "hk-commit-msg"]
command = test \"${HK:-1}\" = \"0\" || mise x -- hk run commit-msg --from-hook \"$@\"
event = commit-msg
[hook "hk-post-checkout"]
command = test \"${HK:-1}\" = \"0\" || mise x -- hk run post-checkout --from-hook \"$@\"
event = post-checkout
[hook "hk-post-commit"]
command = test \"${HK:-1}\" = \"0\" || mise x -- hk run post-commit --from-hook \"$@\"
event = post-commit
[hook "hk-post-merge"]
command = test \"${HK:-1}\" = \"0\" || mise x -- hk run post-merge --from-hook \"$@\"
event = post-merge
[hook "hk-post-rewrite"]
command = test \"${HK:-1}\" = \"0\" || mise x -- hk run post-rewrite --from-hook \"$@\"
event = post-rewrite
[hook "hk-pre-commit"]
command = test \"${HK:-1}\" = \"0\" || mise x -- hk run pre-commit --from-hook \"$@\"
event = pre-commit
[hook "hk-pre-push"]
command = test \"${HK:-1}\" = \"0\" || mise x -- hk run pre-push --from-hook \"$@\"
event = pre-push
[hook "hk-pre-rebase"]
command = test \"${HK:-1}\" = \"0\" || mise x -- hk run pre-rebase --from-hook \"$@\"
event = pre-rebase
[hook "hk-prepare-commit-msg"]
command = test \"${HK:-1}\" = \"0\" || mise x -- hk run prepare-commit-msg --from-hook \"$@\"
event = prepare-commit-msg