Skip to content

Unable to find git in your PATH #15047

Closed

Description

@lixinxinlove

E:\flutter\flutter\bin\flutter.bat --no-color doctor
Error: Unable to find git in your PATH.
Process finished with exit code 1

Activity

  1. zoechi commented on Mar 2, 2018

    @zoechi
    Contributor

    What happens when you execute git --version in a shell?

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 3, 2018
  3. thangmam commented on Mar 7, 2018

    @thangmam

    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

  4. hassaanjamil commented on Mar 13, 2018

    @hassaanjamil

    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?

  5. prakashJoshi98 commented on Mar 15, 2018

    @prakashJoshi98

    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 ?

  6. vadstep commented on Mar 18, 2018

    @vadstep
  7. JUStrepsec commented on May 15, 2018

    @JUStrepsec

    reinstall git again

  8. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 24, 2018
  9. bhavincb commented on May 25, 2018

    @bhavincb

    any updates?

  10. zoechi commented on Jul 6, 2018

    @zoechi
    Contributor

    Dup of #12129
    I'm going to close this issue because the other has the upvotes.

  11. husseinalkoosh commented on Oct 10, 2018

    @husseinalkoosh

    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

  12. yash365 commented on Oct 30, 2018

    @yash365

    Try adding "C:\Windows\System32" to your PATH variable

  13. iabhishekraj commented on Nov 22, 2018

    @iabhishekraj

    Thanks @yash365 , It works for me.
    "C:\Windows\System32"

  14. sridattayalla commented on Dec 6, 2018

    @sridattayalla

    Thanks @yash365 , I don't know what make the difference but it works for me

  15. 24 remaining items

  16. MdGolam-Kibria commented on Apr 8, 2020

    @MdGolam-Kibria

    What happens when you execute git --version in a shell?

    git version 2.25.1.windows.1

  17. gosteve2705 commented on Apr 11, 2020

    @gosteve2705

    Try adding "C:\Windows\System32" to your PATH variable

    thanks .. fixed this issue for me

  18. cheseren commented on Apr 16, 2020

    @cheseren

    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 ;

    This worked for me, thanks!

  19. jamotaylor commented on Apr 23, 2020

    @jamotaylor

    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 ;

    i installed git for windows (https://gitforwindows.org/) and ticked option for 'add to path' in setup, which probably achieves same result.

  20. Katayath-Sai-Kiran commented on May 20, 2020

    @Katayath-Sai-Kiran

    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 .

  21. Paradox2405 commented on May 24, 2020

    @Paradox2405

    #12129 (comment)

    if none of the above works try this! worked for me!

  22. faizync commented on Jun 18, 2020

    @faizync

    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 .

    Thanks a lot
    i was totally fu*ked up

  23. tosinamuda commented on Jun 26, 2020

    @tosinamuda

    choco install git
    will help with setting path and installation

  24. boyan01 commented on Aug 8, 2020

    @boyan01
    Contributor

    Try adding "C:\Windows\System32" to your PATH variable

    In fact, I didn't want to try your solution at first, because I noticed that %SystemRoot%\system32 already 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.

  25. Ravindrakumara commented on Sep 29, 2020

    @Ravindrakumara

    '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

  26. bytelogicinfoindia commented on Nov 6, 2020

    @bytelogicinfoindia

    add the computer - environment variable - new add the path=C:\Windows\System32 My is working successfully

  27. Hesham222 commented on Apr 29, 2021

    @Hesham222

    '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

  28. github-actions commented on Aug 2, 2021

    @github-actions

    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.

  29. locked as resolved and limited conversation to collaborators on Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions