git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to init a empty repo for pushing?

From
Changsheng Jiang <jiangzuoyan@gmail.com>
Date
Apr 3, 2009, 18:27 UTC
Message-ID
<eafc0afe0904031127v24fafa20m37ab5436ebfe211a@mail.gmail.com>
In-Reply-To
<20090403182312.GA15071@coredump.intra.peff.net>
On Sat, Apr 4, 2009 at 02:23, Jeff King <peff@peff.net> wrote:
Show 12 quoted lines
> 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
Previous: Jeff King
Message 3 of 3 in “How to init a empty repo for pushing?”
  1. Changsheng JiangApr 3, 2009
  2. Jeff KingApr 3, 2009
  3. Changsheng JiangApr 3, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.