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

91.9k views Asked by At

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?

3

There are 3 answers

0
VonC On

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.

1
XtremeDevX On

You can uninstall git using 3 simple steps:

Go to Start Menu > Add Or Remove Programs

In the search bar that pops up, just type Git.

Then just click on the Uninstall button and follow the uninstaller instructions!

To reinstall:

Go to https://git-scm.com/download/win and the installer will download for you. Click on the installer, and enter the custom installation directory that you wanted to install it to (C:\Users\MY_UNAME). Hit the 'Next' button (on the bottom left of the installer window) until you get to the final menu where you have the 'Install' button.

Click on it, and viola, you've successfully reinstalled git!

0
Philip Oakley On

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.