gitでpushしようとしたらエラーになった

独習Git
リック・ウマリ
翔泳社
2016-02-25


はい、いまだにgitよくわからない勢なんですが、pushでエラーになりました。しかも同日何度も成功してたのに。


 % git push
kex_exchange_identification: Connection closed by remote host
Connection closed by xxx.xxx.xxx.xxx port xxxx
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

こんな感じでエラーになったのですが、調べてみたらPC再起動でいけるっぽいことが書いてあったので、実際再起動してみたらうまくいきました。

参考:
https://scrapbox.io/kijisaba-memo/Git%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E3%80%8Cfatal:_Could_not_read_from_remote_repository%E3%80%8D%E3%82%92%E8%A7%A3%E6%B6%88%E3%81%99%E3%82%8B