/
.gitconfig
104 lines (103 loc) · 2.63 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
100
101
102
103
104
[core]
# 改行コードをサーバー:LF, クライアント:CRLFになるように調整する
# Windowsのみtrueにするか検討し、それ以外はfalseでいい
autocrlf = false
# UTF-8の日本語を文字化けせずに表示する
quotepath = false
ignorecase = false
editor = nvim
excludesfile = ~/.gitignore
[include]
# ユーザー名などをGit管理しないローカルファイルに保持する
path = ~/.gitconfig.local
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[color]
# 出力に色を付ける
ui = auto
[alias]
a = add
aa = add -A
ap = add -p
b = branch
ba = branch -a
bd = branch -d
bdf = branch -d -f
bm = branch -m
bl = blame
bll = blame -L
c = commit
cm = commit -m
ca = commit --amend
cl = clone
cp = cherry-pick
cpm = cherry-pick -m
cpm1 = cherry-pick -m 1
cpq = cherry-pick --quit
cps = cherry-pick --skip
df = diff
dfc = diff --cached
ft = fetch
ftp = fetch --prune
h = help
lg = log
lga = log --graph --pretty=format:\"%C(yellow)%h %C(green)%an %C(cyan)%ar%C(yellow)%d %Creset%s\"
mr = merge
ps = push
psd = push -d
psf = push --force-with-lease
rb = rebase
rbc = rebase --continue
rmc = rm --cached
rmr = rm -r
rmt = remote
rmta = remote add
rmtrm = remote remove
rmtrn = remote rename
rs = reset
rsh = reset HEAD
rt = restore
rts = restore --source
rv = revert
rvh = revert HEAD
s = status
ss = status -s
sb = status -s -b
sh = show
st = stash
stl = stash list
sts = stash show
stps = stash push
stpsm = stash push -m
stpp = stash pop
stap = stash apply
std = stash drop
sw = switch
swc = switch -c
swd = switch --detach
tg = tag
tgd = tag -d
v = version
[diff]
# diffでリネームを検知する
renames = true
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
# diffで差分をハイライトする
# ref: https://github.com/git/git/tree/master/contrib/diff-highlight
# : https://udomomo.hatenablog.com/entry/2019/12/01/181404
[pager]
log = diff-highlight | less
show = diff-highlight | less
diff = diff-highlight | less
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f