-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
161 lines (133 loc) · 4.47 KB
/
dot_gitconfig.tmpl
File metadata and controls
161 lines (133 loc) · 4.47 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
[user]
name = Doug Stephen
email = dljs.jr@dougstephenjr.com
signingkey = ~/.ssh/id_ed25519.pub
[gpg]
format = ssh
{{- if eq .chezmoi.os "darwin" }}
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
{{- end }}
[commit]
verbose = true
gpgsign = true
[absorb]
maxStack = 50
autoStageIfNothingStaged = true
[pull]
rebase = true
[diff]
ignoreSubmodules = dirty
[rebase]
updateRefs = true
autosquash = true
autostash = true
[core]
attributesFile = ~/.gitattributes_global
excludesfile = ~/.gitignore_global
editor = nvim
autocrlf = input
untrackedCache = true
pager = delta
fsmonitor = true
logAllRefUpdates = true
sparseCheckout = false
commitgraph = true
[branch]
sort = -committerdate
[alias]
clean-branches = prune-branches -f
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
clog = log --cherry-pick --no-merges --pretty=format:'%C(auto)%h %C(blue)%ad %Creset%<(50,trunc)%s%C(green) %aN%C(auto)%d%C(reset)'
pristine = clean -fxxdii -e '.jj' -e '**/.jj' -e '.vscode' -e '**/.vscode' -e 'mise.toml' -e 'mise.local.toml' -e '.mise.toml' -e '.mise.local.toml'
fix-submods = "!f() { git submodule sync --recursive; git submodule update --init --recursive --force; git submodule foreach --recursive git clean -ffxdi -e '.jj' -e '**/.jj' -e '.vscode' -e '**/.vscode'; }; f"
revert-index = "!f() { git update-index --no-split-index --no-skip-worktree --index-version 2; git submodule foreach --recursive git update-index --no-split-index --no-skip-worktree --index-version 2; }; f"
refcent = "!f() { : git reflog show ; git --no-pager reflog show --date=local --oneline \"${@:--n 20}\"; }; f"
recent = "!f() { : git log ; git --no-pager log --date=local --oneline \"${@:--n 20}\"; }; f"
current = rev-parse --abbrev-ref HEAD
log-to = "!f() { \
CURRENT_BRANCH=$(git current); \
git --no-pager log ${1}..$CURRENT_BRANCH --boundary --oneline; \
}; f"
source-hash = "!f() { \
CURRENT_BRANCH=$(git current); \
git rev-list ${1}..$CURRENT_BRANCH --boundary | tail -n 1 | cut -c2- ;\
}; f"
prep-rebase = "!f() { : git rebase ; git rebase -i --autosquash ${1}; }; f"
info = "!f() { git status; git clog \"${@:--n 20}\"; }; f"
deets = "!f() { : git diff ; git -c color.ui=always status && git diff --color ${@}; }; f"
absorb = absorb -f
sls = smartlog 'stack()'
sld = smartlog 'draft()'
[fetch]
fsckObjects = true
writeCommitGraph = true
[transfer]
fsckobjects = true
[receive]
fsckobjects = true
[push]
default = simple
autoSetupRemote = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[init]
defaultBranch = main
[index]
sparse = false
[delta]
features = decorations
navigate = true
line-numbers = true
side-by-side = true
hyperlinks = true
hyperlinks-file-link-format = "vscode://file/{path}:{line}"
relative-paths = true
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
[merge]
conflictstyle = zdiff3
[diff]
algorithm = histogram
colorMoved = default
mnemonicPrefix = true
[interactive]
diffFilter = delta --color-only --features=interactive
[add.interactive]
useBuiltin = false
[github]
user = dljsjr
[log]
date = format:%F_%T
[rerere]
enabled = true
autoUpdate = true
[url "git@github.com:"]
insteadOf = "https://github.com/"
[credential "https://github.com"]
helper =
helper = !gh auth git-credential
helper = !gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !gh auth git-credential
helper = !gh auth git-credential
[includeIf "gitdir/i:/opt/homebrew/Homebrew/"]
path = ~/.homebrew.gitconfig
[includeIf "gitdir/i:/usr/local/Homebrew/"]
path = ~/.homebrew.gitconfig
[includeIf "gitdir/i:/home/linuxbrew/.linuxbrew/Homebrew"]
path = ~/.homebrew.gitconfig
[feature]
manyFiles = false