现在的位置: 首页 > 综合 > 正文

repo git非主流错误

2013年10月10日 ⁄ 综合 ⁄ 共 469字 ⁄ 字号 评论关闭

repo sync -j4

     error: bootable/recovery/: platform/bootable/recovery checkout 18e9db376fee71b4559eee00c2bbcb0ac53ddab4
    进bootable/recovery/目录中,用git status显示文件,将修改过的文件删除掉,再重新repo sync

repo sync

    contains uncommitted changes

    进到提示目录中,使用git reset --hard命令

repo forall -c git checkout -b   xxx  

//该条命令会对repo下的project执行切换branch的命令

 

有时候用repo sync 会提示

error: .repo/manifests/: contains uncommitted changes

这时候用git reset --hard 去删除本地所有修改,还是有问题。

这时候要进

cd .repo/manifests

git stash

git clean -f -d

然后再去执行repo sync就可以了

抱歉!评论已关闭.