Warning git command cocould not be found. Please create an alias or add it to yo

Source: Internet
Author: User

5 answersactive oldest votes
Up vote 57 down voteaccepted

It sounds like you recently updatedGitHubApplication andGit ShellIs now broken.

Short version

To fix it

    • CloseGit Shell
    • OpenGitHubAnd let it do some post installation.
    • OpenGit ShellAgain and you shoshould be fixed.
In fact, this problem is probably caused by updating git Shell Using GitHub for Windows. The above three steps are actually three steps: 1) Close git Shell 2) Open github3) re-open gitshell

In fact, just follow the above steps. If not, try again as follows ~~~~ (Because I solved the problem by following the above steps)


Long Version

This just happened to me and just to make sure I follow you, you just did this

    • OpenGit Shell
    • You are prompted to updateGitHub
    • After the update,Git ShellOpens

Now it gives the error

Git command cocould not be found. Please create an alias or add it to your path.

Warning: cocould not find ssh-agent.

If this is the case, do this

    • CloseGit Shell
    • Now openGitHubApplication (notGit Shell).

This will say something along the lines of (not sure of the exact version)

GitHub is extracting git ..

Let that go through the process and after it is complete, go openGit ShellAnd it is fixed. Just worked for me at least.

Warning git command cocould not be found. Please create an alias or add it to yo

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.