178
Example
179
~~~~~~~
180
181
- # Core variables
182
- [core]
183
- ; Don't trust file modes
184
- filemode = false
185
-
186
- # Our diff algorithm
187
- [diff]
188
- external = /usr/local/bin/diff-wrapper
189
- renames = true
190
-
191
- [branch "devel"]
192
- remote = origin
193
- merge = refs/heads/devel
194
-
195
- # Proxy settings
196
- [core]
197
- gitProxy="ssh" for "kernel.org"
198
- gitProxy=default-proxy ; for the rest
199
-
200
- [include]
201
- path = /path/to/foo.inc ; include by absolute path
202
- path = foo.inc ; find "foo.inc" relative to the current file
203
- path = ~/foo.inc ; find "foo.inc" in your `$HOME` directory
204
-
205
- ; include if $GIT_DIR is /path/to/foo/.git
206
- [includeIf "gitdir:/path/to/foo/.git"]
207
- path = /path/to/foo.inc
208
-
209
- ; include for all repositories inside /path/to/group
210
- [includeIf "gitdir:/path/to/group/"]
211
- path = /path/to/foo.inc
212
-
213
- ; include for all repositories inside $HOME/to/group
214
- [includeIf "gitdir:~/to/group/"]
215
- path = /path/to/foo.inc
216
-
217
- ; relative paths are always relative to the including
218
- ; file (if the condition is true); their location is not
219
- ; affected by the condition
220
- [includeIf "gitdir:/path/to/group/"]
221
- path = foo.inc
181
+----
182
+# Core variables
183
+[core]
184
+ ; Don't trust file modes
185
+ filemode = false
186
+
187
+# Our diff algorithm
188
+[diff]
189
+ external = /usr/local/bin/diff-wrapper
190
+ renames = true
191
+
192
+[branch "devel"]
193
+ remote = origin
194
+ merge = refs/heads/devel
195
+
196
+# Proxy settings
197
+[core]
198
+ gitProxy="ssh" for "kernel.org"
199
+ gitProxy=default-proxy ; for the rest
200
+
201
+[include]
202
+ path = /path/to/foo.inc ; include by absolute path
203
+ path = foo.inc ; find "foo.inc" relative to the current file
204
+ path = ~/foo.inc ; find "foo.inc" in your `$HOME` directory
205
+
206
+; include if $GIT_DIR is /path/to/foo/.git
207
+[includeIf "gitdir:/path/to/foo/.git"]
208
+ path = /path/to/foo.inc
209
+
210
+; include for all repositories inside /path/to/group
211
+[includeIf "gitdir:/path/to/group/"]
212
+ path = /path/to/foo.inc
213
+
214
+; include for all repositories inside $HOME/to/group
215
+[includeIf "gitdir:~/to/group/"]
216
+ path = /path/to/foo.inc
217
+
218
+; relative paths are always relative to the including
219
+; file (if the condition is true); their location is not
220
+; affected by the condition
221
+[includeIf "gitdir:/path/to/group/"]
222
+ path = foo.inc
223
+----
224
225
; include only if we are in a worktree where foo-branch is
226
; currently checked out