使用REPO代码版本管理时,有出现各种各样在GIT中比较少碰到的问题,如contains uncommitted changes。
工具/原料
1
repo
2
git
方法/步骤
1
当我们在使用repo时,出现如下提示:
2
error: .repo/manifests/: contains uncommitted changes
3
为什么会出现该问题,此时要如何处理呢?
4
出现这个问题主要是本地代码发生变化,即存在被修改的情况,但是未进行commit操作,我们可以进行如下操作恢复:
5
cd .repo/manifests
6
git stash
7
git clean -f -d
8
这三条命令执行完成后,再使用repo sync命令同步代码,就不会出同该提示了。END
上一篇:Linux编译错误处理一例