美文网首页
Repo sync无法拉去代码的问题

Repo sync无法拉去代码的问题

作者: 百工之人 | 来源:发表于2019-03-30 15:53 被阅读0次

当你拉去代码的时候可能遇到下面的情况


来自 ssh://igerrit.xiaxie:000000/binary/ChiDeNe/ChiDeNe/service/canglaoshi/avi

! [已拒绝]          danteng/debug/1.1008611 -> danteng/debug/1.1008611  (会破坏现有的标签)

error: Cannot fetch ZhenFanRen/ShuJu/HaiYaoXiaBian

即使使用repo sync --force-sync 也无法拉去代码。

我曾经尝试将这个仓库删除,然后用git clone拉取代码,但是批量repo sync的时候依然会出现这个问题。

原因在于Repo批量的管理Git的仓库,如果要删除这个仓库的的话,需要删除这个仓库的目录还要在项目的.repo文件夹中删除相关仓库的git信息。

这个文件夹在.repo/projcec-objects.repo/projects中,把相关的xxxxxx.git文件夹删除掉,再repo sync yuting/meiduixing就可以重新拉去代码了。

相关文章

网友评论

      本文标题:Repo sync无法拉去代码的问题

      本文链接:https://www.haomeiwen.com/subject/ulqsbqtx.html