error: .repo/manifests/: prior sync failed; rebase still in progress
2017-12-27 09:58
906 查看
问题
最近在使用repo拉项目时,碰到了这个问题,只知道是操作失误导致的,但就是想不起来具体是哪步所致。网上找了很多基本都是同一个帖子原因是git本地有改动导致的,而我的文件夹是新建的,不存在git操作,所以和我的问题不匹配,最后折腾了好久才解决!原因及解决办法
其实原因很简单,找到你的工作空间根目录或者新建文件夹的根目录,执行ls -al,查看列表里是否出现.repo的文件,有的话再执行rm -rf .repo将文件删除即可,出现这个问题的原因是我创建了文件夹准备拉项目,但是在执行repo init时没有进入这个新建的文件夹在其根目录执行了操作,这才导致了不可重复执行!备注
如果实在找不到是哪里多了.repo文件,也可以到根目录执行搜索.repo语句find . -type d -name .repo
全局搜索,不在项目里的.repo即为多余的 !删除即可!
(这里我搜索出来的目录是 ./.repo,进入到该目录(cd ./.repo),再执行ls -al,查看有.repo再执行rm -rf .repo)
相关文章推荐
- 使用git am添加patch失败后, repo更新项目失败:prior sync failed; rebase still in progress
- git prior sync failed; rebase still in progress
- Gradle sync failed: Cause: error in opening zip file 问题解决
- Gradle sync failed: Cause: error in opening zip file
- There is an internal error in the React performance measurement code.Did not expect componentDidMount timer to start while render timer is still in progress for another instance
- Android Studio 安装时 Gradle sync failed: Cause: error in opening zip file 的错误
- Android Studio 首坑 Gradle sync failed: Cause: error in opening zip file 的错误
- Gradle sync failed: Cause: error in opening zip file
- Android Studio 首坑 Gradle sync failed: Cause: error in opening zip file 的错误
- android studio报错:Gradle sync failed: Cause: error in opening zip file
- FAILED: Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.
- How to Solve Key_read Failed Error in Git Push
- Error:"failed to open the hard disk" in virtualbox
- failed to sync branch You might need to open a shell and debug the state of this repo
- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vqeCP7/Django/
- Failed to sync Gradle project '项目名称(module)' Error:failed to find Build Tools revision 20.0.0
- FAILED: Error in metadata: InvalidOperationException(message:Database hive is not empty)
- Android Error Gradle sync failed 设备未就绪问题
- 【已解决】Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-GFFuD_/ipython/
- Error:Failed to find target with hash string 'android-25' in: E:\androidstudio\androidstudio\sdk