您的位置首页生活百科

REPO出现uncommitted changes处理方法

REPO出现uncommitted changes处理方法

的有关信息介绍如下:

REPO出现uncommitted changes处理方法

使用REPO代码版本管理时,有出现各种各样在GIT中比较少碰到的问题,如contains uncommitted changes。

当我们在使用repo时,出现如下提示:

error: .repo/manifests/: contains uncommitted changes

为什么会出现该问题,此时要如何处理呢?

出现这个问题主要是本地代码发生变化,即存在被修改的情况,但是未进行commit操作,我们可以进行如下操作恢复:

cd .repo/manifests

git stash

git clean -f -d

这三条命令执行完成后,再使用repo sync命令同步代码,就不会出同该提示了。