在执行
repo sync
命令后,我收到了一个错误信息:error: .repo/manifests/: contains uncommitted changes
,但是git status
或 git diff
并未显示任何更改。造成该问题的原因是什么?为什么会发生这种情况?
git reset --hard
然后repo sync
. - hjpotter92git diff --cached
会显示什么? - hjpotter92.repo/manifests/
目录,然后执行git reset --hard
命令。请注意,翻译过程中不会添加任何解释或其他内容。 - hjpotter92