-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
104 lines (104 loc) · 2.63 KB
/
Copy path.gitconfig
File metadata and controls
104 lines (104 loc) · 2.63 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
[include]
path = .gitconfig.local
[user]
name = Junichi Sato
email = 22004610+sato11@users.noreply.github.com
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII4l2q5QcW6O7KpPBVvlQCu/3abwMcFdJvpDhtJXcTAY
[column]
ui = auto
[core]
excludesfile = ~/.gitignore_global
editor = /usr/bin/vim
pager = delta
[branch]
sort = -committerdate
[tag]
sort = -version:refname
[diff]
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[alias]
# status/show
s = status
ss = status -s
sh = show
# commit
a = add
c = commit
cam = commit -a --amend
co = checkout
cb = checkout -b
cd = checkout develop
cm = checkout main
cmm = checkout master
# branch
b = branch
ba = branch -a
bm = branch --merged
bn = branch --no-merged
br = branch -r
# fetch/pull/push
f = fetch
fp = fetch --prune
pl = pull
pp = pull --prune
ps = push
# diff
di = diff
dif = diff
dc = diff --cached
ds = diff --staged
dw = diff --word-diff
dcw = diff --color-words
# log
la = log --pretty=\"format:%ad %h (%an): %s\" --date=short
ll = log --date=short --pretty=format:'%C(yellow)%h %C(magenta)%cd %C(cyan)%cn %C(yellow)%d %Creset%s'
ll1 = log --date=short --max-count=1 --pretty=format:'%C(yellow)%h %C(magenta)%cd %C(cyan)%cn %C(yellow)%d %Creset%s'
lll = log --date=short --max-count=10 --pretty=format:'%C(yellow)%h %C(magenta)%cd %C(cyan)%cn %C(yellow)%d %Creset%s'
graph = log --graph --date=short --decorate=short --pretty=format:'%C(yellow)%h %C(magenta)%cd %C(cyan)%cn %C(yellow bold)%d %Creset%s'
ranking = shortlog -s -n --no-merges
# rebase
rb = rebase --merge
rbd = rebase --merge develop
rba = rebase --abort
rbc = rebase --continue
rbi = rebase -i
[init]
defaultBranch = main
[ghq]
root = ~/src
[gpg]
format = ssh
[gpg "ssh"]
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign
[commit]
cleanup = scissors
gpgsign = true
verbose = true
[interactive]
diffFilter = delta --color-only
[delta]
features = zebra-light
hyperlinks = true
hyperlinks-file-link-format = "vscode://file/{path}:{line}"
line-numbers = true
navigate = true
whitespace-error-style = "magenta reverse"
[delta "zebra-light"] # https://github.com/dandavison/delta/blob/0.17.0/themes.gitconfig#L315
minus-style = syntax "#fbdada"
minus-emph-style = syntax "#f6b6b6"
plus-style = syntax "#d6ffd6"
plus-emph-style = syntax "#adffad"
map-styles = \
bold purple => syntax "#feecf7", \
bold blue => syntax "#e5dff6", \
bold cyan => syntax "#d8fdf6", \
bold yellow => syntax "#f4ffe0"
zero-style = syntax
whitespace-error-style = "#aaaaaa"
[merge]
conflictstyle = diff3
[diff]
colorMoved = default