写了点code,想交到GitHub,结果报了个错。

fatal: unable to access 'https://github.com/koking0/Algorithm.git/': OpenSSL SSL_read: Connection was reset, errno 10054

之前一直没啥事的,不知道为啥今天突然报错了。

其实改个东西就可以了,把 .git/cofig中的url里https改成http就OK了。

[remote "origin"]
	url = https://github.com/koking0/Algorithm.git
	fetch = +refs/heads/*:refs/remotes/origin/*

改成

[remote "origin"]
	url = http://github.com/koking0/Algorithm.git
	fetch = +refs/heads/*:refs/remotes/origin/*