If this all is correct and you still have the same problem running C:\flutter\bin\flutter.bat I would open up flutter.bat in vscode to see if it re-sets your PATH somewhere or tries to open git with an incorrect full-path. Maybe edit it and force it in there by adding somewhere on top: