git rev-parse HEAD is not recognized as an internal or external command

0 votes

Hi Guys,

I am trying to run flutter doctor command, but it is showing me the below error.

$ flutter doctor
'git rev-parse HEAD' is not recognized as an internal or external command,
operable program or batch file.
Building flutter tool...
Running pub upgrade...
'dir /a:l "C:\src\flutter\bin\cache\dart-sdk" 2>nul | find "> bin [" 2>nul' is not recognized as an internal or external command,
operable program or batch file.
Jul 17, 2020 in Others by akhtar
• 38,260 points
4,102 views

1 answer to this question.

0 votes

Hi@akhtar,

I also faced the same problem. You can try the below-given solution. It will work.

  • Control Panel –> System –> Advanced system settings -> Environment Variables

And change ComSpecvariable value from "%SystemRoot%\system32\cmd.exe;" to "C:\Windows\system32\cmd.exe", after that restart your command line.

answered Jul 17, 2020 by MD
• 95,460 points

Related Questions In Others

+1 vote
1 answer

ng is not recognized as an internal or external command

I solved this problem in accordance with ...READ MORE

answered Feb 11, 2022 in Others by Rahul
• 9,680 points
16,530 views
0 votes
1 answer

'adb' is not recognized as an internal or external command, operable program or batch file

Set the path of adb into System ...READ MORE

answered Feb 16, 2022 in Others by Aditya
• 7,680 points
7,135 views
0 votes
1 answer

'composer' is not recognized as an internal or external command in windows server

For anyone coming here from Google who ...READ MORE

answered Feb 17, 2022 in Others by Aditya
• 7,680 points
20,410 views
0 votes
1 answer
0 votes
1 answer

What are some advantages of Flutter?

Hi@akhtar, Nowadays Flutter is taking the market. It ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,460 points
787 views
+1 vote
2 answers

Flutter plugin not installed; this adds Flutter specific functionality.

Hatayı çözebildin mi? Bende de aynı hata ...READ MORE

answered Nov 21, 2020 in Others by Osman
21,051 views
0 votes
1 answer

What is Dart?

Hi@akhtar, Dart is an open-source, general-purpose, object-oriented programming ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,460 points
1,241 views
0 votes
1 answer

how to install Amazon AWS Command Line Interface tools on Bamboo build agent.

Hi@Abhishek, You need to set the following parameters ...READ MORE

answered Apr 6, 2020 in Others by MD
• 95,460 points
1,856 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP