Git 报错及解决记录(个人持续更新中)

不同的代码管理账号,所以就选择输入用户名和密码提交,github上整整就连不上,而且用登录密码提交代码现在不好使了,得用token;
记录一下git问题,方便我自己查找!
1.OpenSSL SSL_read: Connection was reset, errno 10054
解决办法:git config --global http.sslVerify “false”
再次输入用户名、密码即可对远端代码进行管理。
2.连不上github时,可以配置host,对github进行提速,(注:不用改任何地址,拿来直接用,使用的是SwitchHosts进行host管理)

# GitHub520 Host Start
140.82.114.26                 alive.github.com
140.82.113.26                 live.github.com
185.199.108.154               github.githubassets.com
140.82.114.21                 central.github.com
185.199.108.133               desktop.githubusercontent.com
185.199.108.153               assets-cdn.github.com
185.199.108.133               camo.githubusercontent.com
185.199.108.133               github.map.fastly.net
199.232.69.194                github.global.ssl.fastly.net
140.82.113.3                  gist.github.com
185.199.108.153               github.io
140.82.114.4                  github.com
192.0.66.2                    github.blog
140.82.112.6                  api.github.com
185.199.108.133               raw.githubusercontent.com
185.199.108.133               user-images.githubusercontent.com
185.199.108.133               favicons.githubusercontent.com
185.199.108.133               avatars5.githubusercontent.com
185.199.108.133               avatars4.githubusercontent.com
185.199.108.133               avatars3.githubusercontent.com
185.199.108.133               avatars2.githubusercontent.com
185.199.108.133               avatars1.githubusercontent.com
185.199.108.133               avatars0.githubusercontent.com
185.199.108.133               avatars.githubusercontent.com
140.82.114.9                  codeload.github.com
52.217.88.132                 github-cloud.s3.amazonaws.com
52.216.12.36                  github-com.s3.amazonaws.com
52.216.239.131                github-production-release-asset-2e65be.s3.amazonaws.com
52.217.174.129                github-production-user-asset-6210df.s3.amazonaws.com
52.217.129.153                github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153               githubstatus.com
64.71.144.202                 github.community
23.100.27.125                 github.dev
185.199.108.133               media.githubusercontent.com

3.git push的时候提示"fatal: unable to access ‘https://github.com/xxxxx/xxxx.git/’: Failed to connect to github.com port 443: Timed out
此时账户和密码框都没有进行弹出;
解决办法:输入以下命令
git config --global --unset http.proxy
然后就可以重新push了。

4.推送代码失败!!!fatal: Authentication failed for ‘https://github.com/xxxlgloverd/my-docs.git/’
github老是整幺蛾子!!烦死了!!
你得配token才能上传代码!!!
在这里插入图片描述
设置完了之后存起来!!!方便下次上传代码的时候用!!!!

未完持续更新中。。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值