@@ -28,7 +28,9 @@ OPTIONS
28
28
-------
29
29
<repository>::
30
30
The "remote" repository that is destination of a push
31
- operation. See the section <<URLS,GIT URLS>> below.
31
+ operation. This parameter can be either a URL
32
+ (see the section <<URLS,GIT URLS>> below) or the name
33
+ of a remote (see the section <<REMOTES,REMOTES>> below).
32
34
33
35
<refspec>...::
34
36
The canonical format of a <refspec> parameter is
@@ -42,22 +44,21 @@ tip of `master` branch); see linkgit:git-rev-parse[1]) that you
42
44
want to push. The <dst> side represents the destination location.
43
45
+
44
46
The local ref that matches <src> is used
45
- to fast forward the remote ref that matches <dst> (or, if no <dst> was
46
- specified, the same ref that <src> referred to locally). If
47
+ to fast forward the remote ref that matches <dst>. If
47
48
the optional leading plus `+` is used, the remote ref is updated
48
49
even if it does not result in a fast forward update.
49
50
+
50
51
`tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`.
51
52
+
52
- A parameter <ref> without a colon pushes the <ref> from the source
53
- repository to the destination repository under the same name .
53
+ A lonely <src> parameter ( without a colon and a destination) pushes
54
+ the <src> to the same name in the destination repository .
54
55
+
55
56
Pushing an empty <src> allows you to delete the <dst> ref from
56
57
the remote repository.
57
58
+
58
59
The special refspec `:` (or `+:` to allow non-fast forward updates)
59
- directs git to push "matching" heads : for every head that exists on
60
- the local side, the remote side is updated if a head of the same name
60
+ directs git to push "matching" branches : for every branch that exists on
61
+ the local side, the remote side is updated if a branch of the same name
61
62
already exists on the remote side. This is the default operation mode
62
63
if no explicit refspec is found (that is neither on the command line
63
64
nor in any Push line of the corresponding remotes file---see below).
0 commit comments