0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

unable to access 'https://github.com/

Posted at

問題

githubリポジトリにgit pushをしようとしたら以下のエラーが出ました。

unable to access 'https://github.com/

対処法

調べてみるとこのエラーは以下のような原因で起こるみたいです。

  1. インターネット接続の問題
  2. DNSの問題
  3. プロキシ設定の問題
  4. GitHubのサービス停止

1のインターネット接続はwifi接続ができていることを確認しました。

次に2のDNSに問題がないかを以下のコマンドで試します。

ping github.com

以下の結果が出てきました。

ping: cannot resolve github.com: Unknown host

ホストがわからないと言っています。

一応他のサイトも確認。

ping google.com

こちらも上記同様、ホストがわからないというメッセージが出力されました。

そこで他の解決策に入る前にPCを再起動することにしました。

再起動後、再度上記のpingコマンドを試してみます。

すると、応答が確認できました。

おわりに

今まで問題なくできていたgit pushが突然できなくなり解決方法もインターネット上にいろいろあったのですが、まずは再起動から始めてみることをおすすめします!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?