-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
129 lines (122 loc) · 4.36 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
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
[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 = diff-highlight | less $LESS -F -x1,5 -X
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol,tab-in-indent
autocrlf = false
precomposeUnicode = true
ignorecase = false
excludesfile = /Users/marslo/.gitignore_global
eol = lf
safecrlf = warn
attributesfile = /Users/marslo/.gitattributes
fileMode = true
sshCommand = ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa
[pager]
branch = less -FRXK
diff = diff-highlight | less
log = diff-highlight | less -FRXK
show = diff-highlight | less -FRXK
[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
[commit]
template = /Users/marslo/.stCommitMsg
[include]
path = ~/.marslo/.gitalias
path = ~/.marslo/.gitcolors
[http]
sslVerify = false
postBuffer = 1048576000
# sslBackend = openssl
[url "ssh://[email protected]:29418/"]
insteadOf = ssh://[email protected]:29418/
# [url "[email protected]"]
# insteadOf = [email protected]
# [url "[email protected]:"]
# insteadOf = https://github.com/
[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]:
[credential]
helper = store --file ~/.git-credentials
# helper = cache --timeout 30000
# helper = wincred
[git-extras]
github-personal-access-token = ghp_***********************************x
# GIT_USERNAME/GIT_ASKPASS for token: https://git-scm.com/docs/gitcredentials
[credential "https://github.com/marslo"]
username = marslo
[credential "https://github.com/marsloijao-mvl"]
username = marslojiao-mvl
helper = "!f() { test \"$1\" = get && echo \"password=gh************************************vr\"; }; 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