众所周知,我们下git当然到官网下最新版的,但是里面只提供了windows版本最新的怎么办呢?
- 进入https://git-scm.com
- 点击Downloads进入下载界面
- 点击Linux/Unix
- 拖到最下可发现下面一段话
Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al. RHEL and derivatives typically ship older versions of git. You can download a tarball and build from source, or use a 3rd-party repository such as the IUS Community Project to obtain a more recent version of git.
- 点击这个“download a tarball”
- 进入源码包下载列表页面
- 比如最新的git版本是git2.18.0,你会发现在下方列表里面找不到它,那怎么下呢?很简单,参照下方任意一个git源码包的下载链接地址格式,自己拼一个下载链接,具体规则如下:
https://mirrors.edge.kernel.org/pub/software/scm/git/git-版本号.tar.gz
那么我要的版本的下载链接就是 https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz
以上就是最新git最新版本源码包下载方式,国外很多网站,下载方式更多在于读者的理解它,想让读者多动脑,比如vagrant下载box也是一样的,谢谢大家支持,以后准备发表更多自己的原创博客!