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

Re: git clone through http bug?

From
SOSergei Organov <osv@javad.com>
Date
Feb 14, 2008, 18:28 UTC
Message-ID
<87r6fftmtd.fsf@osv.gnss.ru>
In-Reply-To
<ee77f5c20802140936y28be9b39i59753af66e1a5e36@mail.gmail.com>
"David Symonds" <dsymonds@gmail.com> writes:
Show 12 quoted lines
> On Thu, Feb 14, 2008 at 9:27 AM, Sergei Organov <osv@javad.com> wrote:
>> Hello,
>>
>>  I've just cloned the public repo (it's rather small):
>>
>>  $ git clone http://ydirson.free.fr/soft/git/cvsps.git
>>
>>  and it has created cvsps/.git, but no working copy.
>
> That's because the remote side doesn't have a HEAD. Just run "git
> checkout --track -b master origin/master" to create a local branch the
> tracks the origin/master branch.
Thanks, that works:

$ git checkout --track -b master origin/master warning: You appear to be on a branch yet to be born. warning: Forcing checkout of origin/master. Already on branch "master" $

Couldn't GIT be more clever and just do this for me? Besides, the fact that it has created HEAD that points nowhere still seems wrong.

-- Sergei.
Previous: David Symonds
Message 3 of 3 in “git clone through http bug?”
  1. Sergei OrganovFeb 14, 2008
  2. David SymondsFeb 14, 2008
  3. Sergei OrganovFeb 14, 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.