Skip to contentSkip to conversation

Documentation for the [remote] config

PATCH In review Santi Béjar 2 participants 2 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation for the [remote] config

---
 Documentation/config.txt |   12 ++++++++++++
 Documentation/urls.txt   |    8 ++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
Documentation/config.txt +12 -0
index 84e3891..ee51fe3 100644
@@ -230,6 +230,18 @@ pull.octopus::
 pull.twohead::
 	The default merge strategy to use when pulling a single branch.
 
+remote.<name>.url::
+	The URL of a remote repository.  See gitlink:git-fetch[1] or
+	gitlink:git-push[1].
+
+remote.<name>.fetch::
+	The default set of "refspec" for gitlink:git-fetch[1]. See
+	gitlink:git-fetch[1].
+
+remote.<name>.push::
+	The default set of "refspec" for gitlink:git-push[1]. See
+	gitlink:git-push[1].
+
 show.difftree::
 	The default gitlink:git-diff-tree[1] arguments to be used
 	for gitlink:git-show[1].
Documentation/urls.txt +8 -0
index 26ecba5..670827c 100644
@@ -51,6 +51,14 @@ lines are used for `git-push` and `git-f
 respectively.  Multiple `Push:` and `Pull:` lines may
 be specified for additional branch mappings.
 
+Or, equivalently, in the `$GIT_DIR/config` (note the use
+of `fetch` instead of `Pull:`):
+
+[remote "<remote>"]
+	url = <url>
+	push = <refspec>
+	fetch = <refspec>
+
 The name of a file in `$GIT_DIR/branches` directory can be
 specified as an older notation short-hand; the named
 file should contain a single line, a URL in one of the
Signature · 1 line
1.4.3.1.gf8f0bb
#1 lore raw

Thanks a lot!

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git