Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why is GIT for Windows showing different versions in git-bash vs git-gui and cmd.exe?

I ran git update-git-for-windows from windows CMD.EXE. It appears to have run fine. Updated, etc. But...

  • In GIT BASH, I enter GIT VERSION and get "git VERSION 2.33.0.windows.2"
  • From CMD.EXE, I enter GIT VERSION and get "git version 2.27.0.windows.1"
  • In GIT GUI, the help > About shows "git version 2.27.0.windows.1"

What's wrong? How I do I fix it? Which version do I really have? And if I have both versions, how can I get rid of the old one?

like image 230
Tom Green Avatar asked Sep 08 '25 06:09

Tom Green


1 Answers

you can check the repsective shell path with:

  • CMD: where git
  • bash: which git

If you see a different path, you would need to clean your %PATH% Windows environment variable and make sure it reference the new Git installation path.

like image 177
VonC Avatar answered Sep 10 '25 01:09

VonC