Clone a locally mounted repository

我只是一个虾纸丫 提交于 2019-12-06 14:32:30

问题


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 

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


回答1:


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



来源:https://stackoverflow.com/questions/1959989/clone-a-locally-mounted-repository

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!