上传文件到github过程及报错

1. 下载git(官网)

  保姆级教程:Git下载安装及设置详细教程_san兄弟的博客-CSDN博客_git下载

2.上传文件夹到github

  保姆级教程:如何上传文件夹到GitHub上(配图详解)?_一只青木呀的博客-CSDN博客_github上传文件夹

3.各种报错

   在clone/push时报错fatal: unable to access 'https://github.com/.../.git': Could not resolve host: github.com

1 git config --global http.sslVerify "false"
2 或者
3 $ git config --global --unset http.proxy
4 $ git config --global --unset https.proxy

  在已经显示进度条后依旧上传失败

  查看文件是否过大:默认 Git 设置 http post 的缓存为 1MB,使用命令将git的缓存设为500M,重新配置一下postBuffer值

  (the remote end hung up unexpectedly Everything up-to-dat)

1 git config --global http.postBuffer 524288000

 

posted on 2022-03-20 14:54  保护小徐同学的头发  阅读(104)  评论(0)    收藏  举报