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
相关推荐
CloudWeGo9 分钟前
Volo-HTTP 0.4.0发布:正式支持 HTTP/2,客户端易用性大幅提升!
后端·http·github
写完这行代码打球去31 分钟前
你会用Github Copilot 吗 ——《内置功能详解》
github·copilot·visual studio
Albert_Lsk2 小时前
【2025/07/14】GitHub 今日热门项目
人工智能·开源·github·开源协议
qianmoQ6 小时前
GitHub 趋势日报 (2025年07月12日)
github
HelloGitHub7 小时前
他没买 iPad,而是花了半年时间,为所有“穷学生”写了个笔记神器
开源·github
我是一只代码狗1 天前
idea中使用git
git·gitee·github
产品经理独孤虾1 天前
GitHub Copilot:产品经理提升工作效率的AI助手
github·copilot·产品经理·原型设计·ai工具·效率提升·prd
杜莱1 天前
IDEA 安装AI代码助手GitHub Copilot和简单使用体验
人工智能·github·intellij-idea