HOWTO · Git

How to Uninstall Git in Windows

Learn how to uninstall Git from Windows, what may remain afterward, and how to reinstall Git for Windows.

On this page

To uninstall Git on Windows, remove it from the installed-apps interface, then check separately whether you need to keep or remove your repositories and user-level Git configuration. The steps below cover the graphical uninstall route and optional reinstallation.

Uninstall Git from Windows

On current Windows versions, open Settings and go to Apps or Installed apps. Find the Git entry, open its menu, choose Uninstall, and follow the prompts. The labels and layout can vary by Windows version. On systems that show the older Control Panel interface, open Programs and Features, select Git in the installed-programs list, choose Uninstall, and follow the prompts.

After the uninstall finishes, open a new terminal and run git --version if you want to check whether the command is still available through your current PATH. This check reports whether that terminal can find Git; it does not verify that every related file has been removed.

What uninstalling Git removes

Uninstalling removes the installed Git for Windows application through its registered uninstaller. A repository is a separate directory, so review its location and back it up before deleting anything. The uninstall process should not be treated as a repository cleanup step.

Git settings can also be stored separately from the application. User-level settings are commonly kept in a .gitconfig file in the user profile, while a repository can have its own .git/config file. Uninstalling Git does not give you a reliable way to determine which settings or files remain on a particular computer. If you want to remove configuration, inspect the relevant files yourself and keep a copy of any settings you may need later.

Reinstall Git for Windows

If you want Git again, use the official Git for Windows download page and run the downloaded installer. Follow its prompts and choose the options that suit your setup. Installer screens and available choices can change, so use the descriptions shown by the installer rather than relying on a fixed sequence. Reinstalling replaces the application; it does not restore deleted repositories or configuration files.

Frequently asked questions

How can I check whether Git is available?

Open a new Command Prompt or PowerShell window and enter git --version. If the command is available through that terminal’s PATH, Git prints a version string. If Windows cannot find the command, Git may be uninstalled or its installation directory may not be on PATH.

Does uninstalling Git delete my repositories?

Repositories are directories that you manage separately from the Git application. Check their locations and make backups before removing files; do not assume the uninstaller will clean them up.

How do I remove Git configuration?

Configuration cleanup is a separate task. Review the user-level .gitconfig and any repository-level .git/config files, and delete only settings you intend to remove. Save a copy first if you may need those settings later.