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

Re: unable to push

From
Jeff King <peff@peff.net>
Date
Jun 1, 2008, 18:36 UTC
Message-ID
<20080601183659.GA5818@sigill.intra.peff.net>
In-Reply-To
<alpine.DEB.1.10.0806011133050.15294@asgard.lang.hm>
On Sun, Jun 01, 2008 at 11:34:19AM -0700, david@lang.hm wrote:
Show 6 quoted lines
>> Did you mean "init" here instead of clone? The clone should have created
>> at least one branch (generally master, but depending on the current
>> branch of the cloned repo).
>
> no, it was definantly a clone, and it did not create a master branch (at  
> least not one that showed up with git branch -a)

Hmm. It's possible that you cloned a repo that didn't have its HEAD pointing at the master branch (for example, one with a detached HEAD). And that would explain how you got into that situation (and either way, the discussed ways out of the situation apply).

-Peff
Previous: david@lang.hmNext: Adam Piątyszek
Message 9 of 11 in “unable to push”
  1. david@lang.hmMay 31, 2008
  2. Jeff KingMay 31, 2008
  3. david@lang.hmMay 31, 2008
  4. Jeff KingJun 1, 2008
  5. Jeff KingJun 1, 2008
  6. david@lang.hmJun 1, 2008
  7. Jeff KingJun 1, 2008
  8. david@lang.hmJun 1, 2008
  9. Jeff KingJun 1, 2008
  10. Adam PiątyszekMay 31, 2008
  11. Jeff KingJun 1, 2008

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.