前提:git安裝上了,項目地址也有,權限也有,ssh公鑰都配置上了,一直克隆空目錄,還報各種錯誤(比如連接超時等等)
做法:
1、執行ssh-agent bash
2、ssh-add ~/.ssh/id_rsa(如果不執行第一步會報Could not open a connection to your authentication agent.)
3.git clone xxxxx就可以了
前提:git安裝上了,項目地址也有,權限也有,ssh公鑰都配置上了,一直克隆空目錄,還報各種錯誤(比如連接超時等等)
做法:
1、執行ssh-agent bash
2、ssh-add ~/.ssh/id_rsa(如果不執行第一步會報Could not open a connection to your authentication agent.)
3.git clone xxxxx就可以了
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。