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. 应该是git环境没有配好吧,可以随便拉个github的试试 请问你这些更新的步骤哪里看的啊? 我找来找去也没看到有要rm origin 和add gitlab ,,,https://gitlab.com/TeeFirefly/FireNow-Marshmallow只看见这个里面有个readme,而且是过时了的。 教程里的步骤是错的,把git remote rm origin 改成git remote rm gitlab 试试,我另外一个帖子有写,http://dev.t-firefly.com/thread-14044-1-1.html git remote -v 查看当前已经存在的remote git reset --hard 失败了是什么原因
页:
[1]