在使用repo sync同步代码时候出现
error: .repo/manifests/: contains uncommitted changes
出现这个问题的原因是本地代码发生变化,但未commit
试着通过 git reset --hard来恢复所有变化的文件之后,依然存在上述问题,
最后通过cd .repo/manifests 切换到 .repo/manifests目录下执行git stash命令,并
通过git clean -f -d命令删除变化记录目录,然后使用repo sync就可以通过了。
本文介绍了解决reposync同步代码过程中遇到的error:.repo/manifests/:containsuncommittedchanges错误的方法。该错误通常由本地未提交的更改引起。文章提供了详细的步骤,包括如何使用git stash暂存更改以及如何通过git clean清理工作目录。
5718

被折叠的 条评论
为什么被折叠?



