开发者

Clone a locally mounted repository

I keep my bare repositories on an AFS file server, mounted locally. When I clone them, I do

git clone --no-hardlinks file:///afs/whereever.foo.bar/myrepository.git 开发者_如何学C

I frequently get the following:

warning: remote HEAD refers to nonexistent ref, unable to checkout.

and no files. This is easily fixed with

git branch master origin/master  
git checkout master  

but I was wondering how to fix it so this isn't necessary.

Thanks,

Liam


check the /afs/whereever.foo.bar/myrepository.git/HEAD file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜