Tuesday, August 23, 2022

How to upgrade Git on Windows to the latest version

Upgrading Git on Windows is a simple process that can be accomplished in a few minutes. You shouldn't need to take any special action to update your Git client software; simply update the program as instructed in the installation message.

You can find the version of your installed git with the below command:
git --version:


To upgrade the git to latest version from Git 2.16.1(2) you can use the below command:

C:\> git update-git-for-windows

In versions between 2.14.2 and 2.16.1, the command was:


C:\> git update

This command does not exist in Git 2.13 and before. For that you need to use the below method:

You can use the latest stable release of Git on Windows in its original form or you can use the latest version of Git for Windows. Downloading the latest version may take some time, depending on the server bandwidth. Once it is downloaded, run the installer and follow step-by-step instructions to install Git on Windows.

You can download it from: https://git-scm.com/downloads

This will automatically finds the existing version and upgrades it to latest version.

Git for Windows is the best way to get started with version control on Windows. 
The Git for Windows installer includes everything you need to get started on Windows. The installer does not include a Git server, you will need to install your own Git server if you wish to distribute code using Git. To install an existing standalone Git server or an old version of JGit, see the JGit installation instructions.. The above process is for git client.

If you already have the latest version it does nothing, in which case you can manually run the installer to reinstall.


C:\> git update-git-for-windows
Git for Windows 2.17.0.windows.1 (64bit)
Up to date

No comments: