git clone fatal: unable to access ‘https://github.com/snsnsjsn/allen.github.io/‘: OpenSSL SSL_read:

解决方案

git config --global http.sslVerify "false" 
git config --global https.sslVerify "false"
git push -u origin master -f

git操作命令

git init 初始化
git status 查看状态
新建文档 .gitignore 增加内容 /node_modules 可以在提交代码时 忽略 依赖包(如果没有可以省略)
git status 再次查看状态 没有显示 node_modules 时 成功忽略(如果没有可以省略)
git add . 如果add后面跟这“.”的话就是提交目录下的所有文件,如果想提交个别就写具体的文件名
git commit -m “xxx” 提交到仓库,在-m后面写注释内容,
git remote add origin ”提交地址“
git push -u origin master
如果没有登陆过就先执行登陆命令
git config --global user.name 用户名
git config --global user.email 注册邮箱

1)移除本地分支:git remote rm origin
(2)添加远程分支:git remote add origin 'https://github.com/***.git'
(3)然后:git pull即可

解决各种浏览器访问不了GitHub问题
一、确定ip
进入网址 https://github.com.ipaddress.com
在这里插入图片描述
二、确定域名ip

进入网址 https://fastly.net.ipaddress.com/github.global.ssl.fastly.net
在这里插入图片描述
三、确定静态资源ip
进入网址 https://github.com.ipaddress.com/assets-cdn.github.com
在这里插入图片描述
四、修改hosts文件
Windows系统:打开C:\Windows\System32\drivers\etc
在底部加入前三步获得的内容,即:

140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com

保存并退出即可。需要提供管理员权限!!!

接着还需要刷新DNS

windows下刷新DNS的方法:

打开CMD

输入

ipconfig /flushdns
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值