windowsgitgit-for-windows

Running Git-2.38.0-64-bit.exe gives "This program requires Windows service pack 1 or later"


I am trying to install Git-2.38.0-64-bit.exe on my Windows 10 Laptop. It immediately shows the error message "This program requires Windows service pack 1 or later." I am running Windows 10 v. 21H1 Build 19043.2130. I am running Windows updates all the time, so this should be a quite current version. And I thought service packs were a thing of Windows 7.

So what should I do to be able to install that Git?


Solution

  • Your Windows 10 is officially supported by Git For Windows

    Try and:

    set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
    set "GH=C:\Git"
    set "PATH=%GH%\bin;%GH%\cmd;%GH%\usr\bin;%GH%\mingw64\bin;%GH%\mingw64\libexec\git-core;%PATH%"
    

    Check that Git is working in that CMD session, starting with git version.