github使用相关问题

建议

  1. 最好科学上网
  2. 配置ssh key

可能错误

clone

remote: Enumerating objects: 357, done.

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

fatal: the remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

解决方法:

将缓存Buffer容量调大(特别是如有大文件)

bash 复制代码
sudo apt install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 5000000000

push

如有科学上网,push还是遇到问题的话可以配置代理

bash 复制代码
git config --global http.proxy 127.0.0.1:1234
git config --global https.proxy 127.0.0.1:1234

地址就是本地回环即可,端口号查看科学上网软件监听的端口并做相应修改

bash 复制代码
git config --global http.proxy socks5 127.0.0.1:1234
git config --global https.proxy socks5 127.0.0.1:1234
相关推荐
突然暴富的我9 小时前
Git 的基本概念和使用方式。
前端·git·json·github
福星高照~11 小时前
Git、Github、tortoiseGit下载安装调试全套教程
git·github
dadalaohua11 小时前
【开源项目】LocalSend 局域网文件传输工具
笔记·学习·github
辣码甄源17 小时前
清新简约之美,开源个人博客:Jekyll Theme Chirpy
开源·github
老衲有点帅18 小时前
Git 常用命令及其作用
git·github
小远披荆斩棘21 小时前
Github与本地仓库建立链接、Git命令(或使用Github桌面应用)
git·github
粥里有勺糖1 天前
「豆包Marscode体验官」MarsCode IDE 搭建 VitePress 博客并使用 GitHub 部署
前端·程序员·github
前端达人2 天前
基于React和TypeScript的开源白板项目(Github项目分享)
前端·react.js·typescript·前端框架·github
阳爱铭2 天前
GitHub:现代软件开发的协作平台
驱动开发·后端·中间件·面试·架构·github·学习方法
OpenTiny社区2 天前
7月6日 VueConf 技术大会即将在深圳举办
前端·vue.js·github