今天日了狗了,操做git fetch 忽然報錯,昨天好好的沒問題, 錯誤信息以下git
socket: Socket operation on non-socket ssh: connect to host gitlab.com port 22: Socket operation on non-socket fatal: Could not read from remote repository
覺得是個小問題,百度、google了很久,有說win10升級引發的, 有說升級git的,有說防火牆的,我一一試玩了都不行,最後找這篇文章windows
意識到一個是計算機socket自己方面的問題,和git無關,而後接着google,終於找到這篇ssh
大概意思是緣由多樣,不常常清理電腦也會出現,解決辦法有gitlab
終於用第二條方案解決。。。fetch