papillondog 发表于 2018-5-31 22:53:35

Android7.1 git更新报错

按照官网更新
git remote rm origin
git remote add gitlab https://gitlab.com/TeeFirefly/FireNow-Nougat.git
git pull gitlab firefly-rk3399:firefly-rk3399

报错如下,如何解决?
git remote rm origin
error: Could not remove config section 'remote.origin'
root@ubuntu:~/Desktop/RK399_Android7.1.2# git remote add gitlab https://gitlab.com/TeeFirefly/FireNow-Nougat.git
fatal: remote gitlab already exists.
root@ubuntu:~/Desktop/RK399_Android7.1.2# git pull gitlab firefly-rk3399:firefly-rk3399
The authenticity of host 'gitlab.com (52.167.219.168)' can't be established.
ECDSA key fingerprint is f1:d0:fb:46:73:7a:70:92:5a:ab:5d:ef:43:e2:1c:35.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitlab.com,52.167.219.168' (ECDSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

zhansb 发表于 2018-6-5 16:10:11

应该是git环境没有配好吧,可以随便拉个github的试试

wjk 发表于 2018-7-9 10:59:59

请问你这些更新的步骤哪里看的啊?    我找来找去也没看到有要rm origin 和add gitlab   ,,,https://gitlab.com/TeeFirefly/FireNow-Marshmallow只看见这个里面有个readme,而且是过时了的。

cl05220726 发表于 2018-7-12 17:28:34

教程里的步骤是错的,把git remote rm origin 改成git remote rm gitlab 试试,我另外一个帖子有写,http://dev.t-firefly.com/thread-14044-1-1.html

shang 发表于 2018-8-21 13:20:49

git remote -v 查看当前已经存在的remote

15822579256 发表于 2018-9-21 11:28:39

git reset --hard 失败了是什么原因
页: [1]
查看完整版本: Android7.1 git更新报错