-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
91 lines (91 loc) · 2.65 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
[user]
name = hkdnet
email = [email protected]
[fetch]
prune = true
[core]
attributesfile = ~/.gitattributes
editor = vim
pager = less -r
autocrlf = input
pager = delta
[color]
ui = true
status = auto
diff = auto
branch = auto
interactive = auto
grep = auto
[alias]
s = status
st = status
ss = status -s
sh = show
so = remote show origin
po = push origin
c = commit
co = checkout
fu = fetch upstream
fo = fetch origin
# diff関連
di = diff
dm = diff master # masterとのdiff
dw = diff --color-words # 単語単位でいろつけてdiff
dc = diff --cached # addされているものとのdiff
ds = diff --staged # 同上(1.6.1移行)
d1 = diff HEAD~ # HEADから1つ前とdiff
d2 = diff HEAD~~ # HEADから2つ前とdiff
d3 = diff HEAD~~~ # HEADから3つ前とdiff
d4 = diff HEAD~~~~ # HEADから4つ前とdiff
d5 = diff HEAD~~~~~ # HEADから5つ前とdiff
d10 = diff HEAD~~~~~~~~~~ # HEADから10前とdiff
# logをtree表示
log-graph = log --graph --date=short --pretty=format:'%Cgreen%h %cd %Cblue%cn %Creset%s'
log-all = log --graph --all --color --pretty='%x09%h %cn%x09%s %Cred%d%Creset'
branches = branch -a
bd = branch -d
bm = branch -m
tags = tag
stashes = stash list
unstage = reset -q HEAD --
discard = checkout --
uncommit = reset --mixed HEAD~
amend = commit -v --amend
fpr = "!f(){ git fetch upstream pull/$1/head:$1; git checkout $1; };f"
[github]
user = hkdnet
[ghi]
token = !security find-internet-password -a hkdnet -s github.com -l 'ghi token' -w
[diff]
indentHeuristic = true
[commit]
verbose = true
[filesystem "Oracle Corporation|1.8.0_212|/dev/disk1s5"]
timestampResolution = 1001 milliseconds
minRacyThreshold = 0 nanoseconds
[interactive]
diffFilter = delta --color-only
[delta]
line-numbers = true
plus-style = syntax "#26AD2B"
minus-style = syntax "#BF4C41"
# syntax-theme = Monokai Extended
[merge]
conflictstyle = diff3
[init]
defaultBranch = main
templateDir = ~/.git-templates/git-secrets
[secrets]
patterns = [0-9]+/[a-f0-9]{40}
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
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential