克隆使用--mirror创建的本地git repo

时间:2019-12-05 08:25:59

标签: git

我从存储库中创建了本地镜像,我们将其称为oldrepo。 这最初是Bitbucket中的私人仓库。现在,我想在存储库中查看代码,因此我首先尝试的是进入包含oldrepo的文件夹并执行以下操作:

git clone oldrepo newrepo

这给了我fatal: repository 'oldrepo' does not exist

然后我尝试了

git clone "C:\full\path to\oldrepo" newrepo

这给了我

fatal: 'C:\full\path to\oldrepo' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

根据我在文档中阅读的内容以及关于SO的其他答案,这应该是可行的方法。显然我缺少了一些东西

0 个答案:

没有答案