forked from matthewmccullough/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgitconfig-common
177 lines (148 loc) · 3.92 KB
/
gitconfig-common
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[includeIf "gitdir:~/Work/"]
path = ~/dotfiles/git-identity-work
[includeIf "gitdir:~/Personal/"]
path = ~/dotfiles/git-identity-personal
[include]
path = ~/dotfiles/git-aliases
[push]
default = simple
[branch]
# Automatically set up pull to be --rebase
autosetuprebase = always
[branch "master"]
rebase = true
autosetuprebase = true
[status]
displaycommentprefix = false
[rebase]
stat = true
[pager]
diff = false
branch = false
[color]
# ui = true is a superset of all the more specific color options
# as documented at http://book.git-scm.com/5_customizing_git.html
# When set to always, always use colors in all git commands which are capable of colored output.
# When false, never. When set to true or auto, use colors only when the output is to the terminal.
# When more specific variables of color.* are set, they always take precedence over this setting.
# Defaults to false.
ui = auto
# diff = auto
# status = auto
# branch = auto
[color "branch"]
#current = yellow reverse
#local = yellow
#remote = green
[color "diff"]
#meta = yellow bold
#frag = magenta bold
#old = red bold
#new = green bold
[color "status"]
#added = yellow
#changed = green
#untracked = cyan
[gui]
# recentrepo = ~/Documents/Temp/Scratch/hello/hgw1
[core]
safecrlf = warn
deltaBaseCacheLimit = 1G
excludesfile = ~/.gitignore
quotepath = false
# autocrlf = input
# editor = vim
[apply]
whitespace = nowarn
[rerere]
enabled = true
[diff]
algorithm = patience
# renames = true
# tool = araxis
# tool = Kaleidoscope
tool = bcomp
# This is for skipping diffing files, that you don't want to add to .gitignore.
# https://stackoverflow.com/questions/52623898/how-can-i-skip-some-files-while-taking-git-diff
[diff "nodiff"]
command = /bin/true
[difftool]
prompt = false
[difftool "myaraxis"]
cmd = araxisgitdiff ONE $LOCAL THREE FOUR $REMOTE
[difftool "bcomp"]
trustExitCode = true
cmd = "/usr/local/bin/bcomp" "$LOCAL" "$REMOTE"
[merge]
# tool = araxis
# tool = Kaleidoscope
tool = bcomp
[mergetool]
prompt = false
keepBackup = false
[mergetool "myaraxis"]
cmd = araxisgitmerge $PWD/$REMOTE $PWD/$BASE $PWD/$LOCAL $PWD/$MERGED
[mergetool "bcomp"]
trustExitCode = true
cmd = "/usr/local/bin/bcomp" "$LOCAL" "$REMOTE" "$BASE" "$MERGED"
[branch]
# Automatically set up pull to be --rebase
#autosetuprebase = always
[url "git://github.com/"]
insteadOf = "ghg://"
pushInsteadOf = "ghg://"
# Example: git clone ghg://ntschutta/emacs
[url "git://github.com/jimlawton/"]
insteadOf = "ghgj://"
pushInsteadOf = "ghgj://"
# Example: git clone ghgj://hellogitworld
[url "[email protected]:"]
insteadOf = "ghs://"
pushInsteadOf = "ghs://"
[url "[email protected]:jimlawton/"]
insteadOf = "ghsj://"
pushInsteadOf = "ghsj://"
[url "https://github.com/"]
insteadOf = "ghh://"
pushInsteadOf = "ghh://"
[url "https://github.com/jimlawton/"]
insteadOf = "ghhj://"
pushInsteadOf = "ghhj://"
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[difftool "p4merge"]
cmd = \"/Applications/p4merge.app/Contents/Resources/launchp4merge $LOCAL $REMOTE\"
[http]
# proxy=http://something
[hub]
protocol = https
[gist]
private = yes
browse = yes
[push]
default = matching
[difftool "Kaleidoscope"]
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[mergetool "Kaleidoscope"]
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
trustExitCode = true
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[gh]
protocol = https
[github]
user = jimlawton
#token = PLACEHOLDER
[http]
sslVerify = false
postBuffer = 524288000
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[spice "branchCreate"]
commit = false