-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig.win
160 lines (153 loc) · 5.54 KB
/
.gitconfig.win
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[user]
name = marslo
email = [email protected]
[gitreview]
username = marslo
remote = origin
[push]
default = matching
followTags = true
[log]
follow = true
# [remote "origin"]
# fetch = +refs/heads/*:refs/remotes/origin/*
[diff]
rename = copy
submodule = log
wsErrorHighlight = all
renamelimit = 10000
# inspired from tpope: https://github.com/tpope/tpope/blob/master/.gitconfig
[diff "ruby"]
funcname = "^ *\\(\\(def\\) .*\\)"
[diff "image"]
textconv = identify
[diff "bin"]
textconv = hexdump -v -C
[core]
editor = nvim
# pager = cat
# pager = less -r
# pager = less
pager = diff-highlight | less $LESS -F -x1,5 -X
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol,tab-in-indent
# whitespace = cr-at-eol
# autocrlf = input
autocrlf = false
precomposeUnicode = true
ignorecase = false
excludesfile = ~/.gitignore_global
eol = lf
safecrlf = false
attributesfile = ~/.gitattributes
fileMode = true
sshCommand = ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa
[pager]
branch = false
diff = diff-highlight | less
log = diff-highlight | less
show = diff-highlight | less
[gui]
fontdiff = -family Consolas -size 11 -weight normal -slant roman -underline 0 -overstrike 0
[pretty]
custom = "%C(magenta)%h%C(red)%d %C(yellow)%ar %C(green)%s %C(yellow)(%an)"
# │ │ │ │ └─ author name
# │ │ │ └─ message
# │ │ └─ date (relative)
# │ └─ decorations (branch, heads or tags)
# └─ hash (abbreviated)
[status]
submoduleSummary = true
[fetch]
prune = true
pruneTags = true
[branch]
autosetuprebase = always
sort = -committerdate
[rerere]
enabled = true
[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
[commit]
template = ~/.stCommitMsg
[include]
path = ~/.marslo/.gitalias
path = ~/.marslo/.gitcolors
[http]
sslVerify = false
postBuffer = 1048576000
# sslBackend = openssl
# proxy = http://127.0.0.1:1087
# [https]
# proxy = http://127.0.0.1:1087
# [http "https://chromium.googlesource.com"]
# sslVerify = false
# proxy = http://127.0.0.1:1087
# [http "[email protected]:"]
# sslVerify = false
# proxy = http://127.0.0.1:1087
[url "ssh://[email protected]:29418/"]
insteadOf = ssh://[email protected]:29418/
# [url "[email protected]"]
# insteadOf = [email protected]
# [url "[email protected]"]
# insteadOf = [email protected]
# [url "https://[email protected]/a/"]
# insteadOf = ssh://[email protected]:29418/
# [url "ssh://[email protected]:29418/"]
# insteadOf = https://[email protected]/a/
[advice]
detachedHead = false
objectNameWarning = false
[pull]
rebase = true
[rebase]
autoStash = true
[init]
defaultBranch = main
templatedir = ~/.git-templates
[blame]
# https://gist.github.com/BuonOmo/ce45b51d0cefe949fd0c536a4a60f000
# date = relative
date ="format:%Y-%m-%d %H:%M:%S %p"
coloring = highlightRecent
showRoot = true
[help]
autocorrect = immediate
[merge]
renamelimit = 10000
############################################################
# for environment failed in $ ssh -vT [email protected] -p 22 #
############################################################
[url "https://github.com/"]
insteadOf = [email protected]:
[url "https://github.com/"]
insteadOf = [email protected]:
[url "https://github.com/"]
insteadOf = [email protected]:
[credential]
helper = store --file ~/.marslo/.git-credentials
# helper = cache --timeout 30000
# helper = wincred
[git-extras]
github-personal-access-token = ghp_D**********************************x
# github-personal-access-token = ghp_C**********************************N
# GIT_USERNAME/GIT_ASKPASS for token: https://git-scm.com/docs/gitcredentials
[url "https://github.com/username"]
insteadOf = [email protected]:username
[credential "https://github.com/marslo"]
username = marslo
[credential "https://github.com/marsloijao-mvl"]
username = marslojiao-mvl
[credential "https://github.com/mdevapraba"]
username = marslojiao-mvl
helper = "!f() { test \"$1\" = get && echo \"password=ghp_p**********************************r\"; }; f"
[trailer "sign"]
key = Signed-off-by
ifmissing = add
ifexists = doNothing
command = echo \"$(git config user.name) <$(git config user.email)>\"
# vim:tabstop=2:softtabstop=2:shiftwidth=2:expandtab:filetype=gitconfig:foldmethod=marker