Skip to content

Commit 2c23f0b

Browse files
committed
Merge branch 'ab/push-example-in-doc'
An error message that sugggests how to give correct arguments to "git push" has been updated. * ab/push-example-in-doc: push: change needlessly ambiguous example in error
2 parents 544d114 + 8247166 commit 2c23f0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/push.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ static NORETURN int die_push_simple(struct branch *branch, struct remote *remote
173173
"\n"
174174
"To push to the branch of the same name on the remote, use\n"
175175
"\n"
176-
" git push %s %s\n"
176+
" git push %s HEAD\n"
177177
"%s"),
178178
remote->name, short_upstream,
179-
remote->name, branch->name, advice_maybe);
179+
remote->name, advice_maybe);
180180
}
181181

182182
static const char message_detached_head_die[] =

0 commit comments

Comments
 (0)