How to Solve “Unable to find git in your PATH” On Flutter?
You need to install Git using the below command line
winget install --id Git.Git -e --source winget
Add this to your PATH variable
C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd;C:\Windows\System32
Do not create a new variable for git but add them as I did one after
another separating them by ";"
If you are windows, 10 users. we’ve tried everything but running cmd as Administrator solved my problem. This may be helpful for others.
You can also try by uninstalling and reinstall GIT to solve my problem.
You can download 64-bit GIT for windows setup: https://git-scm.com/download/win
FOR WINDOWS: If you chose visual studio code during git installation and have multiple user accounts on windows then all you need to do is uninstall git and reinstall git choosing vim as the default editor, not visual studio code.
You also get a warning when choosing visual studio code during git installation.
Pay attention to that,
For me setting visual studio code as default and having multiple User accounts was the issue.
Thanks FlutterAgency.com for this help.
https://flutteragency.com/unable-to-find-git-in-your-path/