Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have installed flutter, git, android studio recently and was trying to run flutter commands after setting path in environment variables but I am getting following error :
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Manage your Flutter app development.

I will be more than happy if I will get a solution to this problem since I am struggling to get one from past few days.
thank you !

What I have tried:

I have tried running flutter command in command prompt but error is coming.
Posted
Updated 10-Nov-21 4:06am
Comments
Richard MacCutchan 10-Nov-21 8:27am    
Please show the full text of the command that causes the problem.
Hoper Adas 10-Nov-21 9:59am    
its :
flutter
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Manage your Flutter app development.
Richard MacCutchan 10-Nov-21 10:05am    
Sorry it is impossible to guess what is happening there. I would guess that your installation, or setup, is incorrect. I suggest you check what you have done against the Flutter documentation.
Hoper Adas 11-Nov-21 7:32am    
what do you mean ?I am just a beginner.
Richard MacCutchan 11-Nov-21 7:39am    
I suggest you do some more studying. The link I provided below takes you to the Flutter website which is the best place to start.

1 solution

 
Share this answer
 
Comments
Hoper Adas 11-Nov-21 7:31am    
nothing is working bro !!!!
Richard MacCutchan 11-Nov-21 7:38am    
I suggest you go to Community | Flutter[^] and ask the Flutter community.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900