Skip to content

Commit e8f2bc0

Browse files
committed
Documentation: note behavior for multiple remote.url entries
Git supports multiple remote.*.url and remote.*.pushurl entries, but this was not documented. Document the current behavior for pushing and pulling so that others can make use of this feature. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
1 parent 8440f74 commit e8f2bc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/urls-remotes.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ config file would appear like this:
3333
------------
3434

3535
The `<pushurl>` is used for pushes only. It is optional and defaults
36-
to `<url>`.
36+
to `<url>`. If multiple `url` or `pushurl` entries are specified,
37+
linkgit:git-push[1] will push to all of them, but linkgit:git-fetch[1] and
38+
linkgit:git-pull[1] will ignore all but the first.
3739

3840
Named file in `$GIT_DIR/remotes`
3941
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)