登入Github、Git本地上传及Visual Studio Code上传教程

一、显示图片问题

1.1 连接失败

1.访问下面网址,查询github相关访问的域名对应的ip。

域名查询网址:https://www.ipaddress.com/
查询下面三个域名ip:
github.com
github.global.ssl.fastly.net
codeload.Github.com

2.找到hosts文件,将上述三行(带ip)放在末尾,保存。
在这里插入图片描述
在这里插入图片描述

3.cmd刷新DNS: ipconfig /flushdns
在这里插入图片描述

1.2 github图片不正常显示

1.直接复制下述语句,如1.1操作,放入hosts文件。

# GitHub Start 
192.30.253.112    Build software better, together 
192.30.253.119    gist.github.com
151.101.184.133    assets-cdn.github.com
151.101.184.133    raw.githubusercontent.com
151.101.184.133    gist.githubusercontent.com
151.101.184.133    cloud.githubusercontent.com
151.101.184.133    camo.githubusercontent.com
151.101.184.133    avatars0.githubusercontent.com
151.101.184.133    avatars1.githubusercontent.com
151.101.184.133    avatars2.githubusercontent.com
151.101.184.133    avatars3.githubusercontent.com
151.101.184.133    avatars4.githubusercontent.com
151.101.184.133    avatars5.githubusercontent.com
151.101.184.133    avatars6.githubusercontent.com
151.101.184.133    avatars7.githubusercontent.com
151.101.184.133    avatars8.githubusercontent.com
# GitHub End

在这里插入图片描述
2.cmd刷新DNS: ipconfig /flushdns

二、GitHub本地上传

2.1 直接使用git命令

Git与github连接与使用详细教程

2.2 VS Code上传

拓展github插件,无须下载git,编辑代码方便。
VScode编辑代码+连接github

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

你脸上有BUG

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值