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

老子叫甜甜 提交于 2021-01-24 01:28:49

问题


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

The original install folder was directly in

C:\Users\MY_UNAME

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

Then re-install it into a sub-folder of

C:\Users\MY_UNAME

say

C:\Users\MY_UNAME\git_4win

.

How can accomplish this?


回答1:


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.




回答2:


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.

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



来源:https://stackoverflow.com/questions/52682006/how-to-uninstall-git-for-windows-re-install-in-new-place

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!