换源/Git 安装包
Git 安装包 镜像源
Git for Windows / macOS 安装包国内镜像下载,git-scm.com 与 GitHub release 提速。
可用镜像源(3)
| 源 | 地址 | 说明 |
|---|---|---|
| npmmirror | https://registry.npmmirror.com/-/binary/git-for-windows/ | 推荐,全版本 |
| 清华 TUNA | https://mirrors.tuna.tsinghua.edu.cn/github-release/git-for-windows/git/ | GitHub release 镜像 |
| 官方 | https://git-scm.com/downloads | 还原时使用 |
换源方法
下载 Git for Windows
wget https://registry.npmmirror.com/-/binary/git-for-windows/v2.45.2.windows.1/Git-2.45.2-64-bit.exemacOS / Linux
macOS 用 brew(见 Homebrew 页);Linux 用发行版包管理(apt/dnf/pacman 页)
brew install git
sudo apt install git使用提示
- ·先用 `chsrc measure
` 或本站节点测速挑最快源,别盲选。 - ·镜像同步通常滞后几分钟到几小时,刚发布的版本拉不到时临时回官方源。
- ·锁定版本 / 提交 lockfile,避免不同源之间版本漂移。
- ·私有包与凭据不要发给第三方镜像;私有仓库走官方或自建源。