-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
62 lines (62 loc) · 1.82 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
[alias]
cleanup = "!f() { \
(git switch -c cleanup-repo-branch || git switch cleanup-repo-branch) && \
git reset --hard && \
git clean -df && \
git branch | grep -ve '^*' | xargs git branch -D && \
git fetch -a && \
git checkout $(git remote show origin | grep 'HEAD branch:' | awk '{ print $3 }') && \
git branch -D cleanup-repo-branch && \
git submodule update --init --recursive -f && \
git remote prune origin && \
git gc; \
}; f"
grame = "!r() { git grep -n $1 $2 | while IFS=: read i j k; do git blame -f -L $j,$j $i; done }; r"
mailmap-helper = shortlog --summary --numbered --email --all
# Fetch large files from https://stackoverflow.com/a/42544963
fetch-large-files = "!f() { \
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| sed -n 's/^blob //p' \
| sort --numeric-sort --key=2 \
| cut -c 1-12,41- \
| $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest; \
}; f"
[commit]
gpgsign = true
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[diff]
submodule = log
[fetch]
recurseSubmodules = on-demand
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[merge]
tool = vimdiff
conflictstyle = diff3
[mergetool]
prompt = false
[status]
submoduleSummary = false
[url "https://"]
insteadOf = git://
[user]
name = Chad Wade Day, Jr.
email = [email protected]
signingkey = 9041D7756B13B2DB
[include]
path = ~/.local/share/includes/work-config/gitconfig
[include]
path = ~/.local/share/includes/extra-config/gitconfig
[pull]
ff = only
[init]
defaultBranch = main
[core]
autocrlf = input
[log]
mailmap = true