昨天公司的網(wǎng)絡(luò)更換,然后在使用git操作代碼的時候,遇見了標(biāo)題所述問題。
僅以此文,記錄該問題的解決過程。
首先第一步:
得到本機的IP地址。
第二步:ping一下
說明連接正常。
第三步:
找到git目錄下的 hosts文件。
一般目錄為 C:\Program Files\Git\etc
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
在該文件下 添加 192.168.1.117 github.com
此處的IP 替換為自己的IP即可
修改之后 如上圖所示。
總結(jié)
到此這篇關(guān)于解決Unable to access 'https://gitee.com/自己的項目/': Could not resolve host: gitee.com問題的文章就介紹到這了,更多相關(guān)Unable to access 'https://gitee.com/自己的項目/': Could not resolve host: gitee.com內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
標(biāo)簽:莆田 鄂爾多斯 雙鴨山 錫林郭勒盟 襄陽 丹東 哈爾濱 遵義
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《解決Unable to access 'https://gitee.com/自己的項目/': Could not resolve host: gitee.com問題》,本文關(guān)鍵詞 解決,Unable,access,amp,#39,https,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。