repo git非主流错误

来源:互联网 发布:linux多进程编程实例 编辑:程序博客网 时间:2024/04/29 14:57

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就可以了

原创粉丝点击