git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* message on no-args push to an empty repo
@ 2010-03-13  1:59 Sitaram Chamarty
  2010-03-14 20:54 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Sitaram Chamarty @ 2010-03-13  1:59 UTC (permalink / raw)
  To: Git Mailing List

Hello,

When someone is doing the *first* push to an empty remote repo, and
they try to use the no-args "git push", they get this:

> No refs in common and none specified; doing nothing.
> Perhaps you should specify a branch such as 'master'.
> fatal: The remote end hung up unexpectedly
> error: failed to push some refs to 'git@gitsrv:testsite.git'

This is a fairly clear message, except that by only mentioning the
branch name, and not the remote name, it perhaps confuses people into
doing this:

> $ git push master
>
> fatal: 'master' does not appear to be a git repository
> fatal: The remote end hung up unexpectedly

The correct answer of course is "git push origin master", and yes I
realise they should read the git-push manpage...

Can we think of a possible wording change to that message to help this
situation?  For example, would it be safe to assume the remote would
always (in such cases) be "origin" and say:

    Perhaps you should specify the remote and the branch explicitly,
like 'git push origin master'

Regards,

Sitaram

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-14 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-13  1:59 message on no-args push to an empty repo Sitaram Chamarty
2010-03-14 20:54 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).