-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
40 lines (40 loc) · 1.09 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
[alias]
b = branch
s = status
d = diff
dc = diff --cached
dd = diff --color-words='.'
co = checkout
log-tree = log --graph --date=short --format='%C(yellow)%h%C(reset) %C(magenta)[%ad]%C(reset)%C(auto)%d%C(reset) %s %C(cyan)@%an%C(reset)'
log-tree-old = log --graph --pretty='format:%C(yellow)%h%Creset %s %Cgreen(%an)%Creset %Cred%d%Creset'
delete-merged-branches = !git branch --merged | grep -v \\* | grep -v master | xargs git branch -d
showpr = !"f() { git log --merges --oneline --reverse --ancestry-path $1...master | grep 'Merge pull request #' | head -n 1; }; f"
[user]
name = Naoki Yaguchi
# [core]
# pager = diff-so-fancy | less --tabs=4 -RFX
[pull]
rebase = true
[color]
ui = auto
[merge]
ff = false
# [pager]
# log = diff-highlight | less
# show = diff-highlight | less
# diff = diff-highlight | less
[ghq]
root = ~/src
[diff "json"]
textconv = "jq ."
[diff]
compactionHeuristic = true
[interactive]
diffFilter = diff-highlight
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main