android - repo 同步 : ! [拒绝] android-q-preview-4 -> android-q-preview-4 (会破坏现有标签)

标签 android git terminal android-source repo


今天,我对 AOSP 存储库进行了repo 同步,然后收到了一些错误。这些是我从终端收到的内容:

From https://android.googlesource.com/platform/external/dtc
 ! [rejected]        android-q-preview-1 -> android-q-preview-1  (would clobber existing tag)
 ! [rejected]        android-q-preview-4 -> android-q-preview-4  (would clobber existing tag)
 ! [rejected]        android-q-preview-5 -> android-q-preview-5  (would clobber existing tag)
 ! [rejected]        android-q-preview-6 -> android-q-preview-6  (would clobber existing tag)
error: Cannot fetch platform/external/dtc
warn: --force-broken, continuing to sync

我该如何解决上述问题?

谢谢。

最佳答案

看来“有人”强制标签在公共(public)项目中移动......啧,啧。无论如何,我也遇到了这个问题,并且我花了比我愿意承认的更长的时间才看到明显的解决方案:只需从我的本地存储库中删除有问题的标签即可。看起来像这样:

$ repo forall -c "git tag -d android-q-preview-1 android-q-preview-4 android-q-preview-5 android-q-preview-6"

$ repo sync

YMMV

关于android - repo 同步 : ! [拒绝] android-q-preview-4 -> android-q-preview-4 (会破坏现有标签),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57723043/

相关文章:

java - 读取时,android 中保存的位图长度为 3 个字节

android - Gradle 无法处理生成的代码更改

git - 将开发分支 merge 到主分支的最佳实践是什么

git - gerrit+apache2 无法注销

python - 无法安装任何库 [SSL : TLSV1_ALERT_PROTOCOL_VERSION]

linux - 从 ssh 启动窗口应用程序

python - 将 python3 设为我在 Mac 上的默认 python

android - 在android4.0中按串行顺序执行异步任务

java - Google 登录不会更改 Activity

git 存储库对所选文件进行提交