用ssh不行,用https就可以了
Topic sourcessh不行是因为你没有设置shs秘钥 1:生成秘钥:ssh-keygen -t rsa -C "你自己的邮箱"
(这里不要设置密码,直接按回车就可以,以后更新就不需要密码)
2: id_rsa 这个文件是你的私钥、id_rsa.pub是你的公共必要,用记事本打开文件id_rsa.pub,把里面的内容复制到github配置ssh
3:添加私秘钥到ssh: ssh-add id_rsa(如果添加失败可以先执行命令ssh-agent bash,然后再次添加私秘钥。)
4: 用ssh -T git@github.com 判断是否绑定成功。如果返回successfully 表示成功
- 1
阿里小号少爷
执行git push -u origin master
fatal: 'git@github.com:qilinonline/git_test.git' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
用https就可以了