git clone 出现fatal: unable to access https://github 类错误解决方法

git clone 遇到问题:

fatal: unable to access ‘https://github.comxxxxxxxxxxx’: Failed to connect to xxxxxxxxxxxxx

将命令行里的http改为git重新执行。