Github git clone 和 git push 特别慢的解决办法

张开发
2026/4/15 4:24:52 15 分钟阅读

分享文章

Github git clone 和 git push 特别慢的解决办法
1.在本地上使用 SSH 命令无法git push 上传 github 项目2.使用 git clone 下载项目特别慢总是加载不了解决办法1将 *** 的连接模式换成D-i-r-e-c-t好像不太有用后面再找找能不能再G-l-o-b-a-l下解决该问题解决办法 2mac下直接设置这个就行了好像是dai li的问题没有走全局dai li的原因将 git 进行切换gitconfig--globalhttp.https://github.com.proxy socks5://127.0.0.1:7890gitconfig--globalhttps.proxy socks5://127.0.0.1:7890永久配置-如果更换了x软件sudovim~/.zshrc# 插入exporthttp_proxyhttp://127.0.0.1:7897exporthttps_proxyhttp://127.0.0.1:7897exportALL_PROXYsocks5://127.0.0.1:7897# 更新source~/.zshrc# 查看是否成功curlipinfo.io设置远程服务器使用本地网络# 先正确运行curlipinfo.io# 在本地ssh配置中加上端口转发和断联限制RemoteForward7897127.0.0.1:7897 ServerAliveInterval60# 服务器设置aliasproxy_onexport ALL_PROXYsocks5://127.0.0.1:7897; export http_proxyhttp://127.0.0.1:7897; export https_proxyhttp://127.0.0.1:7897aliasproxy_offunset ALL_PROXY; unset http_proxy; unset https_proxyproxy_on# 开代理proxy_off# 关代理# 服务器配置git等gitconfig--globalhttp.proxy http://127.0.0.1:7897gitconfig--globalhttps.proxy http://127.0.0.1:7897# 配置HuggingFaceexportHF_ENDPOINThttps://hf-mirror.com# 更新source~/.bashrc# 查看是否成功curlipinfo.io# 随时使用proxy_on/off打开或关闭查找自己dai li的端口xx查找自己的 local hostxx使用git clone项目2025年12月12日20:59:03不同软件的端口是不一致的有时候你更换了软件没有更换对应端口会无法下载。# 清除旧设置gitconfig--global--unsethttp.proxygitconfig--global--unsethttps.proxygitconfig--global--unsethttp.https://github.com.proxygitconfig--global--unsethttps.https://github.com.proxy# 设置7890端口gitconfig--globalhttp.proxyhttp://127.0.0.1:7890gitconfig--globalhttps.proxyhttp://127.0.0.1:7890# 查看端口gitconfig--global-l|grep-iproxy参考链接解决git clone速度太慢的问题https://segmentfault.com/a/1190000039768491git clone一个github上的仓库太慢经常连接失败但是github官网流畅访问为什么 - 汪小九的回答 - 知乎https://www.zhihu.com/question/27159393/answer/141047266Git 克隆非常慢问题的解决https://xwi88.com/git-clone-slowly-solve/Git Clone 太慢怎么办https://github.com/0xAiKang/Note/blob/master/Skill/Git%20Clone%20%E5%A4%AA%E6%85%A2%E6%80%8E%E4%B9%88%E5%8A%9E%EF%BC%9F.mdgit 设置和取消dai lihttps://gist.github.com/laispace/666dd7b27e9116faece6?permalink_comment_id2558253

更多文章