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.

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

最新文章

  1. strtok源码 bitset 空间压缩
  2. 【Java】 环境变量如何配置?
  3. 搭建一套自己实用的.net架构(2)【日志模块-log4net】
  4. ubuntu环境变量
  5. andriod 图片选择器
  6. ArrayList笔记
  7. C#编写媒体播放器--Microsoft的Directx提供的DirectShow组件,该组件的程序集QuartzTypeLib.dll.
  8. Python 函数传递list,传递dict 以及*args和**kargs
  9. -_-#【Better JS Code】插入迭代值
  10. if exists用法
  11. KZ--NSString、NSMutableString
  12. UVA-562 Dividing coins---01背包+平分钱币
  13. golang 代码笔记
  14. 关于display的属性:block和inline-block以及inline的区别,float相关说明
  15. UOJ #36「清华集训2014」玛里苟斯
  16. Installing TensorFlow on Ubuntu or Windows
  17. IIS添加Expires头
  18. 使用maven的插件进行maven项目的打包
  19. go 函数举例练习
  20. Jade的奇怪解析问题。

热门文章

  1. HTML5 Canvas鼠标与键盘事件
  2. DrectX11学习笔记Texture2D有关
  3. 使用CSS如何悬停背景颜色变色 onmouseover、onmouseout
  4. Lua学习 1) —— Android呼叫变量值和分配
  5. basename, dirname 在C语言中的使用
  6. android studio 怎样正确导入jar
  7. 删CentOS / RHEL库和配置文件(Repositories and configuraiton files)
  8. groovy : poi 导出 Excel
  9. UVA 439 Knight Moves(BFS)
  10. Adb shell得到root才干