windows下Github网站加载不出图片解决方法

解决方法

打开路径C:\Windows\System32\drivers\etc下的hosts文件,在最后加上:

# GitHub Start 
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

参考博客链接

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Windows下搭建GitHub,你需要先完成几个步骤: 1. **安装Git**:访问Git官网(https://git-scm.com/download/win)下载适合Windows的Git版本,并按照安装向导进行安装。 2. **配置Git**: - 打开命令提示符或PowerShell:点击“开始”菜单 -> “运行”,输入`cmd` 或 `powershell`。 - 配置全局用户名和邮箱:输入`git config --global user.name "你的名字"` 和 `git config --global user.email "你的邮箱地址"`。 3. **安装GitHub Desktop**:虽然不是必需的,但GitHub Desktop是一个方便管理本地仓库并与GitHub交互的图形界面工具,可以从GitHub官网下载并安装:https://desktop.github.com/ 4. **创建GitHub账号**:如果你还没有GitHub账号,需要去www.github.com 注册一个。 5. **连接GitHub**: - 在命令行中,输入`git remote add origin https://github.com/your-username/your-repo.git`,替换`your-username`和`your-repo`为你想要关联到GitHub的新仓库名。 6. **初始化新项目或克隆现有仓库**: - 如果新建项目,首先在本地创建文件夹,然后在里面初始化一个新的Git仓库:`cd 新建文件夹路径 && git init` - 接着将本地目录添加到Git跟踪:`git add .`,最后提交并推送到GitHub:`git commit -m 'initial commit' && git push -u origin main` 7. **同步更改**:当你对本地项目做出修改后,可以使用`git pull`获取远程更新,`git add`、`git commit`并再次`git push`。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值