gitpowershell

Git not working in Windows 11 Powershell (Select an App to open 'git')


I have downloaded git for windows,
git version 2.44.0.windows.1

Which works fine in Windows cmd & Git Bash & Powershell x86
enter image description here enter image description here

However when running in Windows Powershell I get the Select an app to open, enter image description here

Also my environment variables (System) are set to

C:\Program Files\Git\bin\
C:\Program Files\Git\cmd\

Solution

  • Running the command

    Get-Command -Name git
    

    Seems like it was pointing to the wrong Source in Windows Powershell. When changing the Environemnt Priority to allow it to be run first or deleting the other git resolved the issue