Unbale to accessを解決します。https://gitee.com/自分のプロジェクト/':Could not resove host:gitee.com問題


昨日、会社のネットワークが変わりました。そして、git操作コードを使っている時に、タイトルの問題に出会いました。
この文だけで、この問題の解決過程を記録します。
最初のステップ:

 本機のIPアドレスを取得します。
第二歩:ちょっとpingしてください。

  接続が正常であることを説明します。
ステップ3:
gitディレクトリのhostsファイルが見つかりました。
一般ディレクトリは C:\Program Files\Git\etc
(ハCopyright(c)199-2009 Microsoft Corp.
同前
皑This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
同前
癜This file contains the mappings of IP address to host names.Each
›entryshoult be kept on an individual line.The IP address shoruld
奄be placed in the first column followwid by the corese ponding host name.
癜The IP address and the host name shoult be separated by at least one
ヽ.
同前
璜Additionally、comments(such as these)may be inserted on individual
瑭LINE or follwing the machine name denoted by a'啣'smbol.
同前
璣For example:
同前
同前     102.54.94.97    rhino.acme.com         # source server
同前      38.25.63.10    x.acme.com             # x client host
癜local host name reolution is handed within DNS itself.
同前    127.1.0.1      local host
同前    ::1            local host
このファイルに追加 192.168.117 githb.com
ここのIPは自分のIPに置き換えればいいです。

 修正後は上の図のようになります。
締め括りをつける
これでUnbale to accessを解決します。https://gitee.com/自分のプロジェクト/':Could not resove host:gitee.com問題の文章をここに紹介します。もっと関連するUnbale to access'https://gitee.com/自分のプロジェクト/':Could not resove host:gitee.comの内容は私達の以前の文章を検索してください。または次の関連記事を引き続きご覧ください。これからもよろしくお願いします。