国内 Git 安装 & Github 镜像站点

Git 国内安装

使用阿里镜像下载git安装包

官网( https://git-scm.com/download/win)下载git会比较慢

阿里有一个镜像,网址:https://registry.npmmirror.com/binary.html?path=git-for-windows/

下载速度超快,进去下载最新版本即可

 

Github 镜像站点

A. 页面访问类

这里提供两个最常用的镜像地址:

  •  https://github.com.cnpmjs.org
  •  https://hub.fastgit.org (笔者常用)

图 https://hub.fastgit.org

B. git 克隆类

以下几个国内的GitHub镜像站点来提高访问速度:

1. `kgithub.com`:您可以将GitHub源网址前面加`k`来使用,例如将`https://github.com/username/repo.git`改为`https://kgithub.com/username/repo.git`。这个镜像站点允许查看代码、Issue和评论,但不能注册、上传文件,也不能从`raw.githubusercontent.com`下载文件,可以登录并在线编辑。

2. `hub.nuaa.cf` 和 `hub.fgit.ml`:这些是推荐的镜像站点,您可以通过更改GitHub仓库地址的域名部分来使用它们,例如将 `https://github.com/username/repo.git` 改为 `https://hub.nuaa.cf/username/repo.git` 或 `https://hub.fgit.ml/username/repo.git`。

3. `gitclone.com`:这是一个提供下载缓存的代码下载网站,可以在仓库地址前面加上 `gitclone.com`,例如将 `https://github.com/username/repo.git` 改为 `https://gitclone.com/github.com/username/repo.git`,然后使用 `git clone` 命令来下载仓库

图 gitclone.com

posted @   FBshark  阅读(46)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
点击右上角即可分享
微信分享提示