Failed to traverse parents of commit 更新git的项目代码子项目的时候出现

在更新项目,使用命令

git submodule update --init --recursive
出现这种提示

commit 996e03b949aea176238e3c7a8452700bbb987ac9
Author: christopher <christopher@christopher>
Date:   Wed Jul 3 23:00:44 2013 -0400

    many many changes
error: Could not read 984c11abfc9c2839b386f29c574d9e03383fa589
fatal: Failed to traverse parents of commit 235ae1f48701d577d71ebd430344a159e5ba4881

根据观察是因为项目库引用的分支问题。

解决方法:

找到对应第三方库位置D:\TorchCraftAI\3rdparty\pytorch\third_party,单独克隆子项目

git clone --recursive [address]

完成之后再回到上级目录,使用项目初始化命令

git submodule update --init --recursive

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值