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,240 points
1,630 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,340 points

Related Questions In Others

0 votes
1 answer

ng is not recognized as an internal or external command

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

answered Feb 11 in Others by Rahul
• 8,980 points
1,205 views
0 votes
1 answer
0 votes
1 answer
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,340 points
176 views
+1 vote
3 answers

Flutter plugin not installed; this adds Flutter specific functionality.

Here Is All Possible Solution Added Flutter ...READ MORE

answered Dec 16, 2020 in Others by Blogging
• 140 points
18,991 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,340 points
237 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,340 points
675 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP