執行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 表示成功
具體教程看我上一章。