I have installed flutter last version android studio last version & git last version but when i create a new project it shows up me that error Error: Unable to find git in your PATH. i already checked everything and solutions but it didnt solve it , & when i check flutter file the git file is there but when i open it in android studio i cant see it ! & flutter doctor it not working Thank U :)
I have tried to check path and versions of each thing and reinstall every thing .
I have installed flutter last version android studio last version & git last version but when i create a new project it shows up me that error Error: Unable to find git in your PATH. i already checked everything and solutions but it didnt solve it , & when i check flutter file the git file is there but when i open it in android studio i cant see it ! & flutter doctor it not working Thank U :)
I have tried to check path and versions of each thing and reinstall every thing .
Share Improve this question asked Mar 17 at 11:12 MouayyadMouayyad 11 Answer
Reset to default 0First of all, you can try finding an answer in this thread: How to solve "Unable to find git in your PATH" on Flutter?
It would be helpful if you specified what system you're working on. I'll assume you're using Windows.
To me it seems like git is not in your environment variables. You can start by running git --version
in your console. If you get an error saying something like "git is not found", then you probably need to add git to your environment variables. To do this, first of all you need to know where you've installed git. If you already know that and you're using Windows, follow these instructions:
1. Search for "environment variables" on your computer and open it
2. Click the "Environment Variables" button at the bottom-right of the window
3. Double-click on the "Path" entry in the "System variables" section
4. Click on "New" button and add the path to your git installation folder (the folder with git.exe file) to the end of the list
5. Save and close
Now you can check if it worked out, but first an important note: before checking close and re-open your terminal, since it has to re-load the new entry you've added to your PATH. Then run git --version
and see whether now your git works in console.