-
Open Git Bash: Open the Git Bash application on your Windows machine.
-
Run the Update Command: Enter the following command in the Git Bash terminal:
git update-git-for-windows
-
Follow the Prompts: The command will check for updates and, if an update is available, it will guide you through the installation process.
Here is how you can run the command in Git Bash:
$ git update-git-for-windows
Checking for updates...
Downloading Git for Windows update...
Installing update...
After the installation is complete, you can verify the update by checking the Git version:
$ git --version
git version <latest_version>
This will display the version of Git that is now installed on your system.
If the git update-git-for-windows
command does not work or you prefer to update manually, you can follow these steps:
-
Download the Latest Installer: Go to the Git for Windows website and download the latest installer.
-
Run the Installer: Double-click the downloaded
.exe
file and follow the installation instructions. The installer will update your existing Git installation.
After updating, you can verify the installation by running git --version
as shown above.