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

How to init a empty repo for pushing?

From
Changsheng Jiang <jiangzuoyan@gmail.com>
Date
Apr 3, 2009, 18:17 UTC
Message-ID
<eafc0afe0904031117rbfd55cft5f40f1b45df1e454@mail.gmail.com>
Hi list,

I have a repository in my laptop, and need to push the repo to a remote server using ssh protocol.

I know how to init a original repo. But the repo in the server is not original, the laptop repo is.

Just 'git init' in server, then 'git push server' after 'git remote add server ...' in laptop gives error.

Thanks, Changsheng Jiang

Next: Jeff King
Message 1 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.