@@ -7,7 +7,7 @@ git-remote-helpers - Helper programs to interact with remote repositories
7
7
8
8
SYNOPSIS
9
9
--------
10
- 'git remote-<transport>' <remote>
10
+ 'git remote-<transport>' <repository> [<URL>]
11
11
12
12
DESCRIPTION
13
13
-----------
@@ -39,6 +39,35 @@ transport protocols, such as 'git-remote-http', 'git-remote-https',
39
39
'git-remote-ftp' and 'git-remote-ftps'. They implement the capabilities
40
40
'fetch', 'option', and 'push'.
41
41
42
+ INVOCATION
43
+ ----------
44
+
45
+ Remote helper programs are invoked with one or (optionally) two
46
+ arguments. The first argument specifies a remote repository as in git;
47
+ it is either the name of a configured remote or a URL. The second
48
+ argument specifies a URL of the form '<transport>://<address>' or
49
+ '<transport>::<address>', where '<address>' may be an arbitrary
50
+ string.
51
+
52
+ When git encounters a URL of the form '<transport>://<address>', where
53
+ '<transport>' is a protocol that it cannot handle natively, it
54
+ automatically invokes 'git remote-<transport>' with the full URL as
55
+ the second argument. If such a URL is encountered directly on the
56
+ command line, the first argument is the same as the second, and if it
57
+ is encountered in a configured remote, the first argument is the name
58
+ of that remote.
59
+
60
+ A URL of the form '<transport>::<address>' explicitly instructs git to
61
+ invoke 'git remote-<transport>' with '<address>' as the second
62
+ argument. If such a URL is encountered directly on the command line,
63
+ the first argument is '<address>', and if it is encountered in a
64
+ configured remote, the first argument is the name of that remote.
65
+
66
+ Additionally, when a configured remote has 'remote.<name>.vcs' set to
67
+ '<transport>', git explicitly invokes 'git remote-<transport>' with
68
+ '<name>' as the first argument. If set, the second argument is
69
+ 'remote.<name>.url'; otherwise, the second argument is omitted.
70
+
42
71
COMMANDS
43
72
--------
44
73
@@ -212,6 +241,10 @@ OPTIONS
212
241
helper MUST NOT rely on this option being set before
213
242
connect request occurs.
214
243
244
+ SEE ALSO
245
+ --------
246
+ linkgit:git-remote[1]
247
+
215
248
Documentation
216
249
-------------
217
250
Documentation by Daniel Barkalow and Ilari Liusvaara
0 commit comments