如何在 Windows 10 上安装旧版本的 Git
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48331404/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install old version of Git on Windows 10
提问by Robert
I need to downgrade from git version 2.14.2 to version 2.8.1. I've tried downloading the 2.8.1 files from this link, but I'm not actually sure what to do with them to install. There also seems to be conflicting answers in my google search as to whether you need to uninstall the current git version. Please let me know what I should do in order to downgrade git versions. I am using Windows 10.
我需要从 git 版本 2.14.2 降级到版本 2.8.1。我已尝试从此链接下载 2.8.1 文件,但实际上我不确定如何安装它们。关于您是否需要卸载当前的 git 版本,我在 google 搜索中似乎也有相互矛盾的答案。请让我知道我应该怎么做才能降级 git 版本。我正在使用 Windows 10。
回答by C. Augusto Proiete
You can get the installers of Git for Windows for previous versions in the Releases section of the repository on GitHub.
您可以在 GitHub 上存储库的Releases 部分获取以前版本的 Git for Windows 安装程序。
In your specific case, uninstall the current version you have, and install version 2.8.1 that you can download from here:
在您的特定情况下,卸载您拥有的当前版本,并安装可以从此处下载的 2.8.1 版:
https://github.com/git-for-windows/git/releases/tag/v2.8.1.windows.1
https://github.com/git-for-windows/git/releases/tag/v2.8.1.windows.1
Alternatively, you can use the portable version too (without having to uninstall the other version you have), but it's quick and easy to install/uninstall Git for Windows with the installer, and later you can always upgrade to a newer version using a newer installer the same way.
或者,您也可以使用便携式版本(无需卸载您拥有的其他版本),但使用安装程序快速轻松地安装/卸载 Windows 版 Git,之后您始终可以使用较新的版本升级到较新版本安装程序相同。
回答by cateyes
I found that sometime it isn't straightforward to find an old version's full installer for on Git for Windows' release page. For example recently i tried to download v2.22.0
for windows. However the latest one on the release page is v2.22.0.windows.2which doesn't contain full installer, but just MinGit-2.22.0.windows.2
etc. Had to click Next
a few times and open each 2.22.0.windows
release to find another one v2.22.0.windows.1actually contains a full installer
我发现有时在Git for Windows 的发布页面上找到旧版本的完整安装程序并不简单。例如最近我尝试下载v2.22.0
Windows。然而,发布页面上的最新版本是v2.22.0.windows.2,它不包含完整的安装程序,但只是MinGit-2.22.0.windows.2
等等。不得不点击Next
几次并打开每个2.22.0.windows
版本才能找到另一个v2.22.0.windows.1实际上包含一个完整的安装程序
Later I found that on Npackdit's easier to find those full installers. Just search Git
, and find Git for Windows
64 bit installersand 32 bit installers. All download links point to Git for Windows
' official releases on GitHub. Nice eh :)For example Git for Windows 64 bit 2.8.1
full installer is this.
后来我发现在Npackd上更容易找到那些完整的安装程序。只需搜索Git
,即可找到Git for Windows
64 位安装程序和32 位安装程序。所有下载链接都指向Git for Windows
' GitHub 上的官方版本。不错 eh :)例如,Git for Windows 64 bit 2.8.1
完整的安装程序是这个。