Skip to content

Commit 4c8e3dc

Browse files
ttaylorrgitster
authored andcommitted
Documentation/git-push.txt: correct configuration typo
In the EXAMPLES section, git-push(1) says that 'git push origin' pushes the current branch to the value of the 'remote.origin.merge' configuration. This wording (which dates back to b2ed944 (push: switch default from "matching" to "simple", 2013-01-04)) is incorrect. There is no such configuration as 'remote.<name>.merge'. This likely was originally intended to read "branch.<name>.merge" instead. Indeed, when 'push.default' is 'simple' (which is the default value, and is applicable in this scenario per "without additional configuration"), setup_push_upstream() dies if the branch's local name does not match 'branch.<name>.merge'. Correct this long-standing typo to resolve some recent confusion on the intended behavior of this example. Reported-by: Adam Sharafeddine <[email protected]> Reported-by: Fabien Terrani <[email protected]> Signed-off-by: Taylor Blau <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 59ec224 commit 4c8e3dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-push.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ EXAMPLES
600600

601601
`git push origin`::
602602
Without additional configuration, pushes the current branch to
603-
the configured upstream (`remote.origin.merge` configuration
603+
the configured upstream (`branch.<name>.merge` configuration
604604
variable) if it has the same name as the current branch, and
605605
errors out without pushing otherwise.
606606
+

0 commit comments

Comments
 (0)