From: Jeff King <peff@peff.net>
To: Changsheng Jiang <jiangzuoyan@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How to init a empty repo for pushing?
Date: Fri, 3 Apr 2009 14:23:12 -0400 [thread overview]
Message-ID: <20090403182312.GA15071@coredump.intra.peff.net> (raw)
In-Reply-To: <eafc0afe0904031117rbfd55cft5f40f1b45df1e454@mail.gmail.com>
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".
-Peff
next prev parent reply other threads:[~2009-04-03 18:25 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 [this message]
2009-04-03 18:27 ` Changsheng Jiang
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=20090403182312.GA15071@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=jiangzuoyan@gmail.com \
/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).