💡
原文中文,约600字,阅读约需2分钟。
📝
内容提要
国内有一种加速下载GitHub代码的方法,通过在仓库URL前加上gitclone.com前缀实现。例如,将`git clone https://github.com/huggingface/transformers`替换为`git clone https://gitclone.com/github.com/huggingface/transformers`,下载速度可达1M/s。此方法适用于git clone和git pull命令,但需确认克隆的代码与GitHub一致。
🎯
关键要点
- 国内下载 GitHub 上代码速度慢,用户普遍感到头疼。
- 可以通过在仓库 URL 前加上 gitclone.com 前缀来加速下载。
- 例如,将 'git clone https://github.com/huggingface/transformers' 替换为 'git clone https://gitclone.com/github.com/huggingface/transformers'。
- 使用该方法下载速度可达 1M/s。
- 此加速方法适用于 git clone 和 git pull 命令,适合拉取代码进行本地查看。
- 下载的仓库可能只包含最新的一次提交或完整提交,原因不明。
- 需确认克隆的代码与 GitHub 上的一致,无法保证拉取的代码未被修改。
🏷️
标签
➡️