git clone failed. Could not read from remote repository
生活随笔
收集整理的這篇文章主要介紹了
git clone failed. Could not read from remote repository
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題:
在使用git克隆gitee或者github上面的項目時,能夠連接上卻無法下載下來!
解決:
? ? ? ?1、在本地打開git bash 運行??
? ? ? ? 檢查是否有設置賬戶名
git config user.name
?? 如果沒有,設置賬戶名
git config --global user.name "git賬戶名"
生成ssh公鑰和私鑰,直接enter就可以,注意記下位置(找到id_rsa.pub文件) ssh-keygen -t rsa -C "git賬戶名"
2、打開gitee,進入設置--->ssh公鑰(github也是一樣的操作? settngs--->SSH and GPG keys)
創建公鑰,將id_rsa.pub文件內容填入
? ? ? ?而后就可以clone自己需要的項目!
?
轉載于:https://www.cnblogs.com/alexPeng/p/9973436.html
總結
以上是生活随笔為你收集整理的git clone failed. Could not read from remote repository的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 资产负债率的合理区间
- 下一篇: 银行星期日可以办理业务吗