How do I fix the "Error: The Flutter directory is not a clone of the GitHub project." error when I'm trying to install flutter?

2,580

Make sure that git is in your path by calling it. If it is not, add it to your path.

If this still won't work go to your flutter directory, delete it and rerun the git clone of the flutter repo.

Share:
2,580
ABAS HERSI
Author by

ABAS HERSI

Updated on December 06, 2022

Comments

  • ABAS HERSI
    ABAS HERSI over 1 year

    I downloaded and installed git 2.18 easily and then I proceeded o download the zip SDK of flutter. Once I did that, I extracted it to my documents folder and than I updated the path in the "environmental variables" tab in control panel: The Path

    After this, I proceeded to make sure everything was working by typing in flutter into control panel and afterwards, I got this error: The error. I tried fixing it by typing in the command that the error told me to enter, and afterwards, I still got the error. Could someone please tell me how to fix this and also how to fix the mistake typing in and entering the command from the error?

  • ABAS HERSI
    ABAS HERSI almost 6 years
    How would I go about calling the checking/adding git to my path? I think that may be the problem actually as I only added flutter to my path.
  • Bostrot
    Bostrot almost 6 years
    Call git -v. If it doesn't respond add it to your path e.g. like described here
  • ABAS HERSI
    ABAS HERSI almost 6 years
    I called git -v and although I'd get something if I typed git, it would say it doesn't recognize the -v part so I ended up following along that article you shared with me. As I was going through the files, I found that there wasn't a git hub file in the local file, making it impossible for me to progress. Do you know what I should do?