首页 > 其他分享 >repo - contains uncommitted changes

repo - contains uncommitted changes

时间:2022-11-07 18:23:39浏览次数:58  
标签:git contains manifests repo uncommitted changes

2022-11-07 好用!

在使用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 就可以通过了。

————————————————
版权声明:本文为CSDN博主「青nihq1」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/cpongo1/article/details/102472869

标签:git,contains,manifests,repo,uncommitted,changes
From: https://www.cnblogs.com/juwan/p/16866949.html

相关文章