Skip to content

Commit 89edd5a

Browse files
Anders Melchiorsengitster
authored andcommitted
Documentation: mention branches rather than heads
The "matching refs" semantics works only on matching branches these days. Instead of using "heads" which traditionally has been used more or less interchangeably with "refs", say "branch" explicitly here. Signed-off-by: Anders Melchiorsen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 391d186 commit 89edd5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-push.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ Pushing an empty <src> allows you to delete the <dst> ref from
5757
the remote repository.
5858
+
5959
The special refspec `:` (or `+:` to allow non-fast forward updates)
60-
directs git to push "matching" heads: for every head that exists on
61-
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
6262
already exists on the remote side. This is the default operation mode
6363
if no explicit refspec is found (that is neither on the command line
6464
nor in any Push line of the corresponding remotes file---see below).

0 commit comments

Comments
 (0)