repo sync同步代码出现contains uncommitted changes

repo sync同步代码时候出现

Q:error: packages/apps/Wizard/: contains uncommitted changes

出现这个问题的原因是本地代码发生变化,但未commit。通过 git reset --hard xxx ,repo sync同步依然存在上述问题。

A:

//解决方法
cd packages/apps/Wizard/
git stash
git clean -f -d  删除变化记录目录
repo sync
发布了15 篇原创文章 · 获赞 1 · 访问量 2248

猜你喜欢

转载自blog.csdn.net/a5671667/article/details/101066283