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,180 points
713 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,140 points

Related Questions In Others

0 votes
1 answer

How to check if array is multidimensional or not?

Since the 'second dimension' could be just ...READ MORE

answered Nov 5, 2018 in Others by DataKing99
• 8,240 points
2,858 views
0 votes
3 answers

error "VT-x is not available (VERR_VMX_NO_VMX)."

Either the VT-x is disabled in the BIOS ...READ MORE

answered Oct 27, 2020 in Others by Diksha
• 140 points

edited Oct 27, 2020 by Gitika 294 views
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,140 points
103 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 15, 2020 in Others by Blogging
• 140 points
17,491 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,140 points
136 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,140 points
359 views