富贵资源网 Design By www.hznty.com

昨天公司的网络更换,然后在使用git操作代码的时候,遇见了标题所述问题。

仅以此文,记录该问题的解决过程。

首先第一步:

解决Unable to access 'https://gitee.com/自己的项目/': Could not resolve host: gitee.com问题

 得到本机的IP地址。

第二步:ping一下

解决Unable to access 'https://gitee.com/自己的项目/': Could not resolve host: gitee.com问题

  说明连接正常。

第三步:

找到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即可

解决Unable to access 'https://gitee.com/自己的项目/': Could not resolve host: gitee.com问题

 修改之后 如上图所示。

总结

富贵资源网 Design By www.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com

稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!

昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。

这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。

而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?