You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also got the same error.i get the git version when i execute the git--version command in a shell.Below is the output i am getting .
git version 2.16.2.windows.1.
I got the above error when i click on packages get on android studio(pubspec.yaml file).But when i run flutter packages get from command line.It seems to work fine as i can import the new library
I got the same error when ran command flutter doctor after adding flutter path to Path Environment variable
After running git --version command
I got git version 2.6.3.windows.1
What should I do now?
Reacted by ssumertas, justy, Tom, Sahil8317, ahmedsima163, 25Kishan, sharmanitin0497, Alex, Meet Patel, Emmanuel Wisdom Israel and 2 more
if you use win7 you should update your path
, right click on my computer ,
advanced system setting ,
environment variables ,
in below choose path , and put (;) semi colom ,
then add bin folder in flutter sdk direction ,
it will be run
Try adding "C:\Windows\System32" to your PATH variable
Reacted by Abhishek Raj, Sri Datta Yalla, Amir Dautov, Patrick waweru, Zeynab, fareesa_mas, Imali Susan, LinkGitcode, RaviDhakadMMF, chenyang and 64 more
Reacted by RaviDhakadMMF, chenyang, Aly Radwan, Vuong Chi Son, (:, Dunn, kenn588, USAMA, idati, Abdulbois and 6 more
Reacted by Vuong Chi Son, (:, Dunn, kenn588, USAMA, idati, Antoine Assaf, Luqman Tuke, Danial, Mohit Kumar Yadav and 4 more
Reacted by michaelevistek, Japneet Singh Sachdeva, Navid Ahrary, DennisVerissimo, Ahmad Salamouny, Aly Radwan, The Former Topol, @Morse , Simon Peter A, Vuong Chi Son and 21 more
Reacted by Dunn, kenn588, USAMA, idati, Antoine Assaf, Luqman Tuke, Danial, Mohit Kumar Yadav, Murilo Cicolin and Sean May
Reacted by Dunn, Rene Reiterer, USAMA, idati, Antoine Assaf, Danial, Mohit Kumar Yadav, Gumbeat, Murilo Cicolin and Sean May
Add
C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd;C:\Windows\System32
to your PATH variable
Do not create new variable for git but add them as I did one after another separating them by ;
Thank you!!
This worked for me I've been stuck in this been 3 hours lol .
'where' is not recognized as an internal or external command,operable program or batch file.Error: Unable to find git in your PATH.
system variable: PathC:\Windows\System32; C:\Program Files\Git\git-cmd.exe; C:\src\flutter\bin;
User variable: C:\Windows\System32; C:\Program Files\Git\git-cmd.exe; C:\src\flutter\bin;
'where' is not recognized as an internal or external command,
operable program or batch file.
Error: Unable to find git in your PATH.
Although I have entered the path in an environment variable
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
zoechi commentedon Mar 2, 2018
What happens when you execute
git --versionin a shell?thangmam commentedon Mar 7, 2018
I also got the same error.i get the git version when i execute the git--version command in a shell.Below is the output i am getting .
git version 2.16.2.windows.1.
I got the above error when i click on packages get on android studio(pubspec.yaml file).But when i run flutter packages get from command line.It seems to work fine as i can import the new library
hassaanjamil commentedon Mar 13, 2018
I got the same error when ran command
flutter doctorafter adding flutter path to Path Environment variableAfter running
git --versioncommandI got git version 2.6.3.windows.1
What should I do now?
prakashJoshi98 commentedon Mar 15, 2018
E:\flutter\flutter\bin\flutter.bat --no-color doctor
Error: Unable to find git in your PATH.
Process finished with exit code 1
same error can you please guys help me ?
vadstep commentedon Mar 18, 2018
You should add git to your PATH variable!
https://stackoverflow.com/questions/26620312/installing-git-in-path-with-github-client-for-windows
JUStrepsec commentedon May 15, 2018
reinstall git again
bhavincb commentedon May 25, 2018
any updates?
zoechi commentedon Jul 6, 2018
Dup of #12129
I'm going to close this issue because the other has the upvotes.
husseinalkoosh commentedon Oct 10, 2018
if you use win7 you should update your path
, right click on my computer ,
advanced system setting ,
environment variables ,
in below choose path , and put (;) semi colom ,
then add bin folder in flutter sdk direction ,
it will be run
yash365 commentedon Oct 30, 2018
Try adding "C:\Windows\System32" to your PATH variable
iabhishekraj commentedon Nov 22, 2018
Thanks @yash365 , It works for me.
"C:\Windows\System32"
sridattayalla commentedon Dec 6, 2018
Thanks @yash365 , I don't know what make the difference but it works for me
24 remaining items
MdGolam-Kibria commentedon Apr 8, 2020
git version 2.25.1.windows.1
gosteve2705 commentedon Apr 11, 2020
thanks .. fixed this issue for me
cheseren commentedon Apr 16, 2020
This worked for me, thanks!
jamotaylor commentedon Apr 23, 2020
i installed git for windows (https://gitforwindows.org/) and ticked option for 'add to path' in setup, which probably achieves same result.
Katayath-Sai-Kiran commentedon May 20, 2020
This worked for me I've been stuck in this been 3 hours lol .
Paradox2405 commentedon May 24, 2020
#12129 (comment)
if none of the above works try this! worked for me!
faizync commentedon Jun 18, 2020
Thanks a lot
i was totally fu*ked up
tosinamuda commentedon Jun 26, 2020
choco install git
will help with setting path and installation
boyan01 commentedon Aug 8, 2020
In fact, I didn't want to try your solution at first, because I noticed that
%SystemRoot%\system32already exists in my system environment variable.But after using your solution, it magically started to work.
My guess is that in some command-line tools, the difference in the processing of upper and lower case causes this problem.
In short, thank you very much.
Ravindrakumara commentedon Sep 29, 2020
'where' is not recognized as an internal or external command,operable program or batch file.Error: Unable to find git in your PATH.
system variable: PathC:\Windows\System32; C:\Program Files\Git\git-cmd.exe; C:\src\flutter\bin;
User variable: C:\Windows\System32; C:\Program Files\Git\git-cmd.exe; C:\src\flutter\bin;
guy plz. how to rectfiy ? let me know
bytelogicinfoindia commentedon Nov 6, 2020
add the computer - environment variable - new add the path=C:\Windows\System32 My is working successfully
Hesham222 commentedon Apr 29, 2021
'where' is not recognized as an internal or external command,
operable program or batch file.
Error: Unable to find git in your PATH.
Although I have entered the path in an environment variable
github-actions commentedon Aug 2, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.