昨天公司的网络更换,然后在使用git操作代码的时候,遇见了标题所述问题。
仅以此文,记录该问题的解决过程。
首先第一步:
得到本机的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即可
修改之后 如上图所示。
总结
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
更新日志
- 鸣潮新手池角色哪个好 新手池角色推荐
- 杨采妮.1997-离别之前新曲+精选(告别专辑)【EMI百代】【WAV+CUE】
- 新城唱好谢霆锋X达明一派同场异梦音乐会2CD[WAV+CUE]
- 翁立友2010-十年坚持好胆你就来[豪记][WAV]
- 鸣潮公测福利领取攻略 开服108抽福利获取大全
- 鸣潮是哪个公司的游戏 鸣潮游戏开发商介绍
- 鸣潮官方兑换码合集 最新可用兑换码分享
- 谭咏麟.1998-在乎【宝丽金】【WAV+CUE】
- 谭咏麟.1999-谁可改变谭咏麟原装版【环球】【WAV分轨】
- 郭富城.2006-MYNATION(国)【大国文化】【WAV+CUE】
- 崔子格《崔子格歌曲合集》[320K/MP3][121.9MB]
- 陈慧琳《陈慧琳歌曲合集》[320K/MP3][103MB]
- 陈慧娴《陈慧娴歌曲合集》[320K/MP3][110.2MB]
- 鸣潮角色强度排行攻略 公测最新节奏榜
- 鸣潮120高帧率怎么设置 120帧设置方法介绍