[repo] No such file or directory: ‘/xxxx/.repo/manifests/.git/HEAD‘error: manifest missing or unrea

1、运行 repo init -u xxxxx --no-repo-verify 报错 :

Unable to negotiate with : no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 fatal: Could not read from remote repository.

【解决方法】:在~/.ssh/config添加这一行(config之前已经配置了Host跟User)。

KexAlgorithms +diffie-hellman-group1-sha1

2、运行 repo init -u xxxxx --no-repo-verify 报错 :

No such file or directory: '/home/l230700179/android10T2T4/.repo/manifests/.git/HEAD' error: manifest missing or unreadable -- please run init

【原因分析】:缺了HEAD这个文件,至于为什么缺没有分析。

【解决方法】:新建一个文件夹,重新运行repo命令。

你可能感兴趣的:(git)