Github更新后打开Git shell后出现的警告问题: git command could not be found. Please create an alias or add it to...

Github更新后打开Git shell后出现的警告问题:

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

谷歌搜索的其中很多人做了都很有效的答案:

To fix it
    close  Git Shell
    open  GitHub  and let it do some post installation.
    Open  Git Shell  again and you should be fixed.

如果做了之后出现如下错误:

git command could not be found. Please create an alias or add it to your PATH.
Warning: Could not find ssh-agent.

接下来就这么做:

    Close  Git Shell
    Now open the  GitHub  application (not  Git Shell ).

然而我做了很多遍也没成功。

将profile.example文件中
Import-Module .\posh-git修改为:
Import-Module .\posh-git -Args $true

保存后成功了!

你可能感兴趣的:(Github更新后打开Git shell后出现的警告问题: git command could not be found. Please create an alias or add it to...)