zoukankan      html  css  js  c++  java
  • 警告: git command could not be found. Please create an alias or add it to yo

    5 Answers

    up vote 57 down voteaccepted

    It sounds like you recently updated GitHub application and Git Shell is now broken.

    Short version

    To fix it

    • close Git Shell
    • open GitHub and let it do some post installation.
    • Open Git Shell again and you should be fixed.
    事实上出现这个问题非常可能是由于使用github for windows 的小伙伴更新了git shell所产生的。

    上面的三点事实上就是三个步骤:
    1)关闭git shell 
    2)打开gitHub
    3)又一次打开Gitshell即可

    事实上照着上面的做即可了。假设不行的再照着以下的尝试一下哈~~~~(由于我照着上面的做就解决这个问题了)


    Long version

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

    • Open Git Shell
    • You are prompted to update GitHub
    • After the update, Git Shell opens

    Now it gives the error

    git command could not be found. Please create an alias or add it to your PATH.

    Warning: Could not find ssh-agent.

    If this is the case, do this

    • Close Git Shell
    • Now open the GitHub application (not Git 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 open Git Shell and it is fixed. Just worked for me at least.

    版权声明:本文博客原创文章,博客,未经同意,不得转载。

  • 相关阅读:
    vue监听多个变量的方法
    Unicode与JavaScript详解
    两个数组合并的方法
    第13章 事件
    第12章 DOM2和DOM3
    IIS发布WebService的一些常见问题
    Openlayers修改矢量要素并且可捕捉
    Openlayers修改矢量要素
    openlayers画图形返回范围
    前台html与后台php通信(上传文件)
  • 原文地址:https://www.cnblogs.com/blfshiye/p/4732826.html
Copyright © 2011-2022 走看看