windowsfluttersystem-variable

Flutter 'Error: Unable to find git in your PATH' in Windows


I just installed Flutter SDK, And I got an error Error: Unable to find git in your PATH. when I type flutter --version in CMD.

I searched about this and I found some answers, but nothing works.

I installed SDK in D:, so I deleted it and installed it in C:\src, and I set System variable again, but still same.
And I installed Git and tried again, but failed.

I'm using Window 10.


Solution

  • Add path of installed git usually it is in following path,check once,the update the path

    C:\Program Files\Git\cmd
    

    to your PATH variable

    After you added path,still have problem try this

    You could try reinstalling Git with "Use Git and optional unix tools from the command prompt" selected in the installer.

    This would add git and the unix tools to the path. You may have installed with only 'Use Git from Bash only' selected?