问题
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