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
相关推荐
qianmoQ39 分钟前
GitHub 趋势日报 (2025年06月13日)
github
生信研究猿2 小时前
使用git上传项目到github
git·github
独立开阀者_FwtCoder3 小时前
三行CSS代码把网页像素化
前端·javascript·github
阿古达木5 小时前
沉浸式改 bug,步步深入
前端·javascript·github
掘金安东尼7 小时前
,别重复造轮子!新宣【宝藏工具】帮你提效
前端·面试·github
人帅是非多7 小时前
Spanny-使用DSL优雅构建Android富文本库
android·github
我不是迈巴赫9 小时前
开源分享:实习中开发的单点登录Cookie管理神器 | 从痛点到产品的完整实践
前端·面试·github
程序员鱼皮1 天前
知名开源项目Alist被收购!惹程序员众怒,开团炮轰甲方
互联网·github·项目
掘金安东尼1 天前
本期 AI 开发【宝藏工具】精选:值得收藏!!
前端·面试·github
颜笑晏晏2 天前
Git 零基础到同步 GitHub 和 Gitee 全流程指南
git·gitee·github