使用git bash更新博客遇到的问题与解决方案

写在前面

此帖仅供参考,不一定适合你的情况,请谨慎采纳,造成的一切后果作者不承担责任。

需要确认的

sshkey是否生成并添加到github

如果没有
解决方案

问题描述与解决方案

(框架为hexo6.0.0,git bash版本v2.34.1.windows.1主题是ayer)作者在使用git bash部署博客到github时遇到的问题如下:

  • error:10053
    • 解决方案1(上传较大文件时出现):在git中输入git config –global http.postBuffer 524288000
    • 解决方案2(修改postBuffer后还是不行):网络问题(github的服务器在国外所以连接不稳定),多hexo g && hexo d几次就行
  • 添加了sshkey但还是出现了OpenSSL SSL_connect: Connection was aborted in connection to github.com:443
    • 解决方案1:挂梯子
    • 挂了梯子还是出现:看下面情况的解决方案1
  • fatal: unable to access https://github.com/ xxxx: Failed to connect to 127.0.0.1 port xxxx:
  • 补充:修改代理可以直接在C盘用户文件夹内搜gitconfig文件,直接进行修改,修改完建议重启git bash以检验。

梯子推荐:魔戒(需付费)

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2022 Daniel Qi
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信