git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Changsheng Jiang <jiangzuoyan@gmail.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: How to init a empty repo for pushing?
Date: Sat, 4 Apr 2009 02:27:56 +0800	[thread overview]
Message-ID: <eafc0afe0904031127v24fafa20m37ab5436ebfe211a@mail.gmail.com> (raw)
In-Reply-To: <20090403182312.GA15071@coredump.intra.peff.net>

On Sat, Apr 4, 2009 at 02:23, Jeff King <peff@peff.net> wrote:
> On Sat, Apr 04, 2009 at 02:17:33AM +0800, Changsheng Jiang wrote:
>
>> Just 'git init' in server, then 'git push server' after 'git remote
>> add server ...'  in laptop gives error.
>
> It's hard to say without seeing the error message, but I'm assuming it
> was along the lines of "No refs in common".
>
> By default, "git push server" will push matching branches (i.e., ones
> that both the client and the server have in common). To push a new
> branch, you say "git push server $BRANCH", or even just "git push --all
> server".
Thanks, 'git push --all server' works.

>
> -Peff
>

Changsheng Jiang

      reply	other threads:[~2009-04-03 18:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-03 18:17 How to init a empty repo for pushing? Changsheng Jiang
2009-04-03 18:23 ` Jeff King
2009-04-03 18:27   ` Changsheng Jiang [this message]

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=eafc0afe0904031127v24fafa20m37ab5436ebfe211a@mail.gmail.com \
    --to=jiangzuoyan@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /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).