8

git clone 使用代理,实现百倍加速 - 技术小黑屋

 1 year ago
source link: https://droidyue.com/blog/2022/10/26/speed-up-git-clone-via-proxy/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Git Clone 使用代理,实现百倍加速

Oct 26th, 2022

有时候我们对 github 的仓库进行 clone 的时候,会发现很慢,甚至是龟速,很不够效率。好在有一个简单且快捷的方法来倍速提升clone 效率。

我们通过检索 git 的帮助文档发现有这样的描述

If you just want to use proxy on a specified repository, don’t need on other repositories. The preferable way is the -c, —config <key=value> option when you git clone a repository. e.g.

git clone https://github.com/flutter/flutter.git --config "http.proxy=192.168.1.6:1611"

上面的例子

  • 通过 --config "http.proxy=192.168.1.6:1611" 设置代理
  • 其中 192.168.1.6:1611 是代理的地址,需要自己搭建或者可用的

上面的配置好,再次执行,基本上可以得到百倍的提效。

droidyue_gzh_green_png.png

快来解锁最新版 Typora,新用户券后仅需 84 元!
如何便宜的购买 office 365 ?
新版赤友 NTFS 助手来袭,正版超低价

Posted by androidyue

Oct 26th, 2022git, github, gitlab, proxy

« Flutter 处理 Error Setter not found AsciiChar 问题


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK