error: .repo/manifests/: contains uncommitted changes

出现这个问题的原因是本地代码发生变化,但未commit

 

试着通过 git reset --hard来恢复所有变化的文件之后,依然存在上述问题,

最后通过cd .repo/manifests 切换到 .repo/manifests目录下执行git stash命令,并

通过git clean -f -d命令删除变化记录目录,然后使用repo sync就可以通过了。

相关文章:

  • 2021-07-26
  • 2021-07-02
  • 2021-06-17
  • 2021-07-26
  • 2021-06-09
  • 2021-07-05
  • 2021-10-12
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案