过了段时间更新源码发现错误解决

突然想说更新一下源码。然后直接使用repo sync发现出错。

error: .repo/manifests/: contains uncommitted changes


于是乎网上找答案。贴一个解决办法。。网友解决办法:

richi 大虾:
to recover any uncommitted change, you should use 'git stash' and 'git clean -f -d'
for example: if you find it say there are uncommitted changes in .repo/manifests, you shoud 'cd .repo/manifests' and then 'git stash', 'git clean -f -d'

也就是先在源码根目录。然后执行

cd .repo/manifests

git stash

git clean -f -d

再来执行

repo sync

即可。

 

后面发现有点问题。。再没有commit的情况下。有改动的话。是同步不了的。于是乎。我直接删除了除了.repo之外的文件再同步。(千万不要删除.repo,源码都在里面外面的是解包里面的),然后在同步解决了。

转载于:https://www.cnblogs.com/ronabinho/p/3294688.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值