其他分享
首页 > 其他分享> > repo sync error: .repo/manifests/: contains uncommitted changes

repo sync error: .repo/manifests/: contains uncommitted changes

作者:互联网

andorid 源码库同步,报错如标题,好几次想放弃,尝试了网上不少办法,无效,

最终从 stackoverflow 得到答案:

After issued repo sync, I got a error message like error: .repo/manifests/: contains uncommitted changes, but git status or git diff showed nothing changed.

What's cause of the problem and why it happened?

老外的 git status or git diff 没有变化,可我在 .repo/manifests 执行git status 有变化

Answer is :

Find the root cause, all files under .repo/manifests were changed with their filemode, "git config core.filemode false" can fix this "Modify".

翻译过来就是,进入.repo/manifests 目录,然后执行 git config core.filemode false, 问题解决了。

 

标签:status,git,contains,sync,manifests,repo,error,filemode
来源: https://www.cnblogs.com/qiri07/p/14380771.html