-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
58 lines (53 loc) · 1.87 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
# create ".gitconfig.user" for setting user name and email in the same directory as .gitconfig
[include]
path = .gitconfig.user
[core]
editor = vim -c \"set fenc=utf-8\"
excludesfile = ~/.gitignore_global
quotepath = false
[color]
ui = true
[alias]
alias = config --get-regexp \"alias.*\"
g = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %<(70,trunc)%s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
gt = log --tags --graph --pretty=format:'%Cred%h%Creset %Cgreen%ai %C(yellow)%<(30,trunc)%D%Creset %<(70,trunc)%s' --simplify-by-decoration
l = log
lp = log -p
ls = log --stat
s = status
cm = commit
cmm = commit -m
cmae = commit --allow-empty -m 'Initialize repository'
cmam = commit --amend
cmamne = commit --amend --no-edit
ch = checkout
chb = checkout -b
chm = checkout master
b = branch
ba = branch -a
bd = branch -D
bdr = branch -rd
me = merge
mes = merge --squash
d = diff
dc = diff --cached
dwd = diff --word-diff
r = rebase
ri = rebase -i
rc = rebase --continue
p = push
pc = !git push -u origin `git rev-parse --abbrev-ref HEAD`
pcf = !git push -fu origin `git rev-parse --abbrev-ref HEAD`
first = !git ch $(git rev-list --max-parents=0 master)
prev = checkout HEAD^1
next = !git log --reverse --pretty=%H master | grep -A1 $(git rev-parse HEAD) | tail -1 | xargs git checkout
[init]
templateDir = ~/.git-templates/git-secrets
defaultBranch = main
[secrets]
providers = git secrets --aws-provider
patterns = (A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}
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