使用git fetch命令拉代码时报ssh: connect to host gitlab.focusmedia.tech port 22: Operation timed out fatal: Could not read from remote repository.

使用git fetch命令拉代码时报ssh: connect to host gitlab.focusmedia.tech port 22: Operation timed out fatal: Could not read from remote repository.百度了一下问题说原因可能是由于电脑的防火墙或者其他网络原因导致ssh连接方式 端口22被封锁。

然后更换了获取代码方式为https,就好了

你再不自己敲代码,你的四肢就退化了
原文地址:https://www.cnblogs.com/boqinyaxin/p/14989213.html