-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
99 lines (98 loc) · 2.79 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
# resources:
# - https://jvns.ca/blog/2024/02/16/popular-git-config-options/
# - https://www.brantonboehm.com/code/conditional-git-config/
# -
[alias]
br = branch
ci = commit
co = checkout
df = diff
pl = pull
st = status --short
stl = stash list --pretty=format:'%C(red)%h%C(reset) - %C(dim yellow)(%C(bold magenta)%gd%C(dim yellow))%C(reset) %<(70,trunc)%s %C(green)(%cr) %C(bold blue)<%an>%C(reset)'
cane = commit --amend --no-edit
lg = log -p --pretty=fuller --abbrev-commit
lgg = log --pretty=fuller --abbrev-commit --stat
lola = log --graph --decorate --oneline --all
blog = log origin/main... --left-right
adp = add -p
[apply]
whitespace = nowarn
[blame]
# ignoreRevsFile = .git-blame-ignore-revs
[branch]
autosetupmerge = true
autosetuprebase = always
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
[core]
excludesFile = ~/.gitignore_global
pager = less -FXRS -x2
editor = subl --wait --new-window
# hooksPath = ~/.git-template/hooks
[diff]
algorithm = histogram
[fetch]
prune = true
[merge]
conflictStyle = zdiff3
[pull]
rebase = true
[push]
default = current
autoSetupRemote = true
[rebase]
autosquash = true
autostash = true
[url "[email protected]:"]
pushInsteadOf = https://github.com/
[secrets]
providers = git secrets --aws-provider
patterns = [A-Z0-9]{20}
patterns = (\"|')?(AWS|aws|Aws)?_?(SECRET|secret|Secret)?_?(ACCESS|access|Access)?_?(KEY|key|Key)(\"|')?\\s*(:|=>|=)\\s*(\"|')?[A-Za-z0-9/\\+=]{40}(\"|')?
patterns = (\"|')?(AWS|aws|Aws)?_?(ACCOUNT|account|Account)_?(ID|id|Id)?(\"|')?\\s*(:|=>|=)\\s*(\"|')?[0-9]{4}\\-?[0-9]{4}\\-?[0-9]{4}(\"|')?
allowed = AKIAIOSFODNN7EXAMPLE
allowed = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
[user]
name = Glenn Oppegard
email = [email protected]
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINaEf+SYjx88RLlzz7AThugwfa07ZIS5EnxtqqpfHijb
[rerere]
enabled = true
autoupdate = true
[init]
defaultBranch = main
templatedir = /Users/goppegard/.git-template
[gpg]
format = ssh
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
[commit]
gpgsign = true
[gpg]
format = ssh
[trailer]
ifexists = addIfDifferent # Fix duplicate Co-authored-by from git-duet
[url "ssh://[email protected]/"]
insteadOf = https://gitlab.eng.vmware.com/
[duet "env"]
git-author-initials = go
git-author-name = Glenn Oppegard
git-author-email = [email protected]
mtime = 1710787723
git-committer-initials =
git-committer-name =
git-committer-email =
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[includeIf "hasconfig:remote.*.url:[email protected]:*/**"]
path = .gitconfig-work
[includeIf "hasconfig:remote.*.url:ssh://[email protected]:29418/**"]
path = .gitconfig-work