-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
140 lines (113 loc) · 2.97 KB
/
gitconfig
File metadata and controls
140 lines (113 loc) · 2.97 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# ====================
# Identity & Signing
# ====================
[user]
name = neko-neko
email = seiichi.nishikata456@gmail.com
signingkey = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCqDGFeQ/xG1woOmTgJbEGteZbYP3FMZezrb3URwcZAcJHf85+2E5aLYHiJLx0qsctBrUmHd3dChoTAm9gNNdHKP1DBALg9XCirwk1XeQpuweA7IiLJIIPqdmEneQt/hx22QWOkXR0glvMnoyAd/Yg+C5Q2mzD2qtKnPSN61IneX8lLf1pNloqj3kNVSEN+qy/nU8vm8PfG/GRzPsZWGCwaOa6CLmn+4+V51udALIQNAcWgQRAcj+VfbPczS7YJdxI8gk22FAD0NhPh1g5iu0f7gIpZqLHEu3RqwfoDnPCu/2rmhknKfTAlYNgm7ue7u/QOgSVJYFrEAf2OeBwFmZTQk+vh4Hj02u7B1iUCN4YUcjjmKF067trmRhvZIbWztg1rkKf8Z12MQteA5gV9agdh4+g7/oxXcfVB7GrZ2ndsqEncdxslBhO9Lb2FhJWtqPgcfxOseeLrB6xJJH+fed0R/9DeYBYdtqpQ7s5Xapu2ks8CDCH9sNnVHpOyqED5XR8=
[github]
user = neko-neko
[gpg]
format = ssh
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
[commit]
gpgsign = true
# ====================
# Core
# ====================
[core]
editor = hx
ignorecase = false
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
excludesfile = ~/.gitignore_global
pager = delta
autoCRLF = false
[init]
defaultBranch = main
[help]
autocorrect = prompt
# ====================
# Workflow
# ====================
[apply]
whitespace = fix
[branch]
autosetuprebase = always
[checkout]
defaultRemote = origin
[fetch]
prune = true
[merge]
log = true
[pull]
rebase = true
[push]
default = current
autoSetupRemote = true
[rerere]
enabled = true
# ====================
# Diff & Delta
# ====================
[diff]
renames = copies
[diff "bin"]
textconv = hexdump -v -C
[interactive]
diffFilter = delta --color-only --features=interactive
[delta]
decorations = true
line-numbers = true
side-by-side = true
[delta "interactive"]
keep-plus-minus-markers = true
# ====================
# Color
# ====================
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
# ====================
# Alias
# ====================
[alias]
st = status
amend = commit --amend
fixcommit = commit --fixup
graph = log --graph -10 --branches --remotes --tags --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %ar) %Cred%d' --date-order
history = log -10 --format=format:'%Cgreen%h %Creset• %s (%cN, %ar)'
subupdate = submodule update --init --recursive
subupdate-all = submodule foreach git pull origin HEAD
pull-request = !fzf-hub-pull-requests
pr = pull-request
c = !fzf-git-checkout
delete = !git branch -d $(git branch | fzf)
cursor = "!f() { \
dir=$(ghq list --full-path | fzf --prompt='cursor> ' \
--preview 'ls -a {} | head'); \
[ -z \"$dir\" ] && exit 0; \
cursor \"$dir\"; }; f"
# ====================
# Tools
# ====================
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[ghq]
root = ~/ghq
root = ~/go/src
# ===================
# Override
# ===================
[include]
path = ~/.gitconfig.local