repo sync出错整理
1. 出现contains uncommitted changes错误
1.1. 出现error: .repo/manifests/: contains uncommitted changes错误
原因:修改了.repo/manifests目录下的东西,但没提交导致的
解决方法:
$ cd .repo/manifests
$ git reset --hard HEAD~3
$ cd -
$ repo sync
本文针对reposync过程中出现的containsuncommittedchanges错误进行了详细解析。此错误通常发生在修改了.repo/manifests目录下的文件但未提交时。文中提供了一种解决方法,通过使用git reset命令回退到之前的提交状态,然后重新执行reposync来解决问题。
repo sync出错整理
1. 出现contains uncommitted changes错误
1.1. 出现error: .repo/manifests/: contains uncommitted changes错误
原因:修改了.repo/manifests目录下的东西,但没提交导致的
解决方法:
$ cd .repo/manifests
$ git reset --hard HEAD~3
$ cd -
$ repo sync

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