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,230 points
3,647 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,440 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,670 points
15,435 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
6,611 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
18,831 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,440 points
616 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
20,703 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,440 points
945 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,440 points
1,601 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