From: Sitaram Chamarty <sitaramc@gmail.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: message on no-args push to an empty repo
Date: Sat, 13 Mar 2010 07:29:21 +0530 [thread overview]
Message-ID: <2e24e5b91003121759k34ec294cl8a57ef22eda2bbf5@mail.gmail.com> (raw)
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
next reply other threads:[~2010-03-13 1:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-13 1:59 Sitaram Chamarty [this message]
2010-03-14 20:54 ` message on no-args push to an empty repo Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2e24e5b91003121759k34ec294cl8a57ef22eda2bbf5@mail.gmail.com \
--to=sitaramc@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).