You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started a project in IntelliJ from command line and created it successfully. When I go into IntelliJ file\settings\Languages and select Flutter to set Flutter SDK path it gives me error: Unable to find git in your PATH
c:>flutter doctor
[√] Flutter (on Microsoft Windows [Version 10.0.15063], locale en-US, channel alpha)
• Flutter at C:\Flutter
• Framework revision 701d534 (3 days ago), 2017-09-12 14:01:51 -0700
• Engine revision 31d03de
• Tools Dart version 1.25.0-dev.11.0
[√] Android Studio (version 2.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[√] IntelliJ IDEA Ultimate Edition (version 2017.2)
• Flutter plugin version 17.0
• Dart plugin version 172.4155.35
@zameerrig I do not know exactly what fixed this, but I did update my Flutter, add all things to PATH etc. and it started to work. Also I reinstalled the git for windows app and updated the PATH variable.
@tenhobi Thanks for the update. Yes, it is the problem with PATH variable in flutter.bat file. After setting the GIT in PATH system environment variables(Windows machine), I need to restart my system to work it.
on a new install of Win10, Studio, Flutter. All working then suddenly tonight, all Flutter commands complain with: Error: Unable to find git in your PATH.
I didn't install git yet, so I knew it's coming from flutter or Studio. Reinstalled Studio, magically flutter seems to work again. weird solution.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
cc @Hixie
Before install flutter, I have already installed git. After install flutter and run "flutter doctor", I got the same issue.Then I noticed that this directory("XXX\flutter\bin\mingit\cmd") contains a "git.exe".
So I tried to comment these two lines of code in the file of "XXX\flutter\bin\flutter.bat", then the command of "flutter doctor" works.
I don't know if there are other side effects.
Reacted by arias01, Jan Huege, Denver Shenal and Ritiz Saini
Reacted by arias01
Reacted by arias01, Honza Bittner and Denver Shenal
Before install flutter, I have already installed git. After install flutter and run "flutter doctor", I got the same issue.Then I noticed that this directory("XXX\flutter\bin\mingit\cmd") contains a "git.exe".
So I tried to comment these two lines of code in the file of "XXX\flutter\bin\flutter.bat", then the command of "flutter doctor" works.
Before install flutter, I have already installed git. After install flutter and run "flutter doctor", I got the same issue.Then I noticed that this directory("XXX\flutter\bin\mingit\cmd") contains a "git.exe".
So I tried to comment these two lines of code in the file of "XXX\flutter\bin\flutter.bat", then the command of "flutter doctor" works.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
acaliaro commentedon Dec 4, 2017
I have the same problem... a solution?
tenhobi commentedon Feb 2, 2018
Same issue.
zameerrig commentedon Feb 28, 2018
Have the same problem. Any update on this?
tenhobi commentedon Feb 28, 2018
@zameerrig I do not know exactly what fixed this, but I did update my Flutter, add all things to PATH etc. and it started to work. Also I reinstalled the git for windows app and updated the PATH variable.
zameerrig commentedon Mar 1, 2018
@tenhobi Thanks for the update. Yes, it is the problem with PATH variable in flutter.bat file. After setting the GIT in PATH system environment variables(Windows machine), I need to restart my system to work it.
abhay2smart commentedon Apr 1, 2018
same issue
zoechi commentedon Jul 6, 2018
Please check also the discussions in #15047 and #16591
zoechi commentedon Aug 27, 2018
Is this still an issue?
eturk1 commentedon Oct 8, 2018
on a new install of Win10, Studio, Flutter. All working then suddenly tonight, all Flutter commands complain with:
Error: Unable to find git in your PATH.I didn't install git yet, so I knew it's coming from flutter or Studio. Reinstalled Studio, magically flutter seems to work again. weird solution.
no-response commentedon Oct 8, 2018
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
cc @Hixie
ttdjong commentedon Jan 16, 2019
Before install flutter, I have already installed git. After install flutter and run "flutter doctor", I got the same issue.Then I noticed that this directory("XXX\flutter\bin\mingit\cmd") contains a "git.exe".

So I tried to comment these two lines of code in the file of "XXX\flutter\bin\flutter.bat", then the command of "flutter doctor" works.
I don't know if there are other side effects.
arias01 commentedon Jul 27, 2019
Perfect
Manual roll of engine 7ea9884...5b94c8a (#40275)
1 remaining item
Roll engine from 7ea9884..3c6383f (77 commits 🔥) (#40372)
Roll engine to 6e6de94
Roll engine to 6e6de94 (#40394)
Roll engine 7ea9884..1b63444 (91 commits 🔥🔥🔥) (#40442)
Manual roll of engine 7ea9884...5b94c8a (flutter#40275)
Roll engine from 7ea9884..3c6383f (77 commits 🔥) (flutter#40372)
Roll engine to 6e6de94 (flutter#40394)
Roll engine 7ea9884..1b63444 (91 commits 🔥🔥🔥) (flutter#40442)
abkap commentedon Jun 28, 2020
my problem got solved! thanks!
fatibellafkih commentedon Jul 20, 2021
My problem got solved too thank you
github-actions commentedon Aug 3, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.