Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git clone through http bug?

From: Sergei Organov <hidden>
Date: 2016-06-15 22:44:13

"David Symonds" [off-list ref] writes:
On Thu, Feb 14, 2008 at 9:27 AM, Sergei Organov [off-list ref] wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help