Skip to content

Error: Unable to find git in your PATH. on Windows 11 #159018

@atang08

Description

@atang08

Steps to reproduce

Download flutter_windows_3.24.5-stable and extract to C:.

Add user environmental PATH variable:
[C:\flutter\bin
]
Moved it up so its the first one as well like the install states.

Have Git-2.47.0.2-64-bit installed. Can use git in cmd and powershell.

I tried everything to resolve this..

(I tried every git path possible...I tried this one along with:

C:\Program Files\Git\bin
C:\Program Files\Git\cmd
C:\flutter\bin\mingit\cmd
C:\flutter\bin\mingit\mingw64\bin\

I downloaded the most up to date git windows 64 bit version (2.42) and everything seems to be fine.

When running the git rev-parse HEAD:

PS C:\flutter> git rev-parse HEAD
dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668

Running where flutter:
[C:\flutter\bin\flutter
C:\flutter\bin\flutter.bat]

For my User's windows path environment variable, it includes:
flutter bin, git paths.

Actual results

When opening via command line and running "flutter", "flutter -v", "flutter doctor", "flutter.bat doctor", all results in the same error message:

Error: Unable to find git in your PATH

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Error: Unable to find git in your PATH

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listplatform-windowsBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versiont: flutter doctorProblem related to the "flutter doctor" toolteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions