执行git push -u origin mastergit
fatal: 'git@github.com:qilinonline/git_test.git' does not appear to be a git repository fatal: Could not read from remote repository.github
Please make sure you have the correct access rights and the repository exists.bash
缘由:使用地址不对,这里采用了ssh地址,可是你没有添加ssh秘钥,因此没法链接远程仓库app
解决办法:ssh
1.使用https地址blog
2.添加ssh秘钥教程
1:生成秘钥:ssh-keygen -t rsa -C "你本身的邮箱"rem
(这里不要设置密码,直接按回车就能够,之后更新就不须要密码)it
2: id_rsa 这个文件是你的私钥、id_rsa.pub是你的公共秘钥,用记事本打开文件id_rsa.pub,把里面的内容复制到github配置sshast
3:添加私秘钥到ssh: ssh-add id_rsa(若是添加失败能够先执行命令ssh-agent bash,而后再次添加私秘钥。)
4: 用ssh -T git@github.com 判断是否绑定成功。若是返回successfully 表示成功
具体教程看我上一章。