Skip to content

Commit 8b2a192

Browse files
peffgitster
authored andcommitted
doc: drop "explicitly given" from push.default description
The documentation for push.default mentions that it is used if no refspec is "explicitly given". Let's drop the notion of "explicit" here, since it's vague, and just mention that any refspec from anywhere is sufficient to override this. I've dropped the mention of "explicitly given" from the definition of the "nothing" value right below, too. It's close enough to our clarification that it should be obvious we mean the same type of "given" here. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c7a6207 commit 8b2a192

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/config/push.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
push.default::
22
Defines the action `git push` should take if no refspec is
3-
explicitly given. Different values are well-suited for
3+
given (whether from the command-line, config, or elsewhere).
4+
Different values are well-suited for
45
specific workflows; for instance, in a purely central workflow
56
(i.e. the fetch source is equal to the push destination),
67
`upstream` is probably what you want. Possible values are:
78
+
89
--
910

1011
* `nothing` - do not push anything (error out) unless a refspec is
11-
explicitly given. This is primarily meant for people who want to
12+
given. This is primarily meant for people who want to
1213
avoid mistakes by always being explicit.
1314

1415
* `current` - push the current branch to update a branch with the same

0 commit comments

Comments
 (0)