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

How to make "git push/pull" work in non-clone repo?

From
HSHong-Ming Su <halleyinvent@gmail.com>
Date
Nov 3, 2011, 14:59 UTC
Message-ID
<CANiMyiFfiLnK8-q7vTZ9VAtkW8ip2NQfpR4iaU2oSnnonVDuUA@mail.gmail.com>
Hi,

I create a repo X with git init. After several commit in X, I clone a bare repo Y from X. I try to continue work in X, and push to/pull from Y. The command git push and git pull fails. I see the error message but I do not know which git command can fix that problem. Then I clone Z from Y. git push/pull works in Z. How to make "git push/pull" the same in X as in Z?

Thanks, Hong-Ming

Next: Frans Klaver
Message 1 of 6 in “How to make "git push/pull" work in non-clone repo?”
  1. Hong-Ming SuNov 3, 2011
  2. Frans KlaverNov 3, 2011
  3. Kirill LikhodedovNov 3, 2011
  4. Hong-Ming SuNov 3, 2011
  5. Andreas SchwabNov 3, 2011
  6. Hong-Ming SuNov 4, 2011

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.