如何卸载 git-for-windows 并在新位置重新安装?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/52682006/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 13:12:33  来源:igfitidea点击:

How to uninstall git-for-windows & re-install in new place?

gituninstallinstallation-pathgit-for-windows

提问by Love and peace - Joe Codeswell

I have updated/upgraded my installation of git-for-windows to git version 2.19.1.windows.1using the command line method defined here.

我已使用此处定义的命令行方法将我的 git-for-windows 安装更新/升级到git 版本 2.19.1.windows.1

The original install folderwas directly in

原来的安装文件夹直接在

C:\Users\MY_UNAME

C:\用户\MY_UNAME

I would like to uninstall it (and remove all of its associated files)from there.

我想从那里卸载它(并删除其所有相关文件)

Then re-install it into asub-folder of

然后重新安装到一个子文件夹中

C:\Users\MY_UNAME

C:\用户\MY_UNAME

say

C:\Users\MY_UNAME\git_4win

C:\用户\MY_UNAME\git_4win

.

.

How can accomplish this?

怎样才能做到这一点?

回答by Philip Oakley

Look for the C:\Program Files\Git\unins001.exe or similar in your install folder. It is the uninstall programme that come with Git-for-Windows.

在安装文件夹中查找 C:\Program Files\Git\unins001.exe 或类似文件。它是 Git-for-Windows 自带的卸载程序。

回答by VonC

You should be able to do a simple uninstall standard through Windows programs, and execute the new Git-2.19.1-64-bit.exe, this time selecting a different target folder.

您应该能够通过 Windows 程序执行简单的卸载标准,并执行新的Git-2.19.1-64-bit.exe,这次选择不同的目标文件夹。

Personally, I prefer using PortableGit-2.19.1-64-bit.7z.exe, a self-extracting archive that I can uncompress anywhere I want.

就我个人而言,我更喜欢使用PortableGit-2.19.1-64-bit.7z.exe,一个我可以在任何我想要的地方解压缩的自解压档案。