警告: git command could not be found. Please create an alias or add it to yo
来源:互联网 发布:钉钉后台能查到的数据 编辑:程序博客网 时间:2024/05/01 17:35
5 Answers
active oldest votes
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 0
- 警告: git command could not be found. Please create an alias or add it to yo
- Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider
- Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider
- The type or namespace name `MovieTexture' could not be found. Are you missing an assembly reference?
- No JVM could be found on your system. Please define EXE4J_JAVA_HOME to point to an installed 32-bit
- No JVM could be found on your system.please define ESE4J_JAVA_HOME to point to an installed 32-bit o
- The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an asse
- The type or namespace name '***' could not be found (are you missing a using directive or an asse
- 查询时出错 An expected Field was not found or could not be retrieved properly. [SHAPE.AREA] 解决方法
- 引用DLL打包出错”But the dll is not allowed to be included or could not be found.“
- Wildcard App IDs can not be used to create in House provisioning profiles.Please use an Explicit App
- iOS 整型转换警告"NSInteger' should not be used as format arguments; add an explicit cast to 'long' inste"
- MySQL manager or server PID file could not be found!
- MySQLmanager or server PID file could not be found!
- MySQL manager or server PID file could not be found!
- Device could not be initialized or no devices found
- "cabal: ar is required but it could not be found"
- App Mynewsite could not be found. Is it in INSTALLED_APPS?
- 设计模式小结
- 第七周项目3 简单分支问题体验
- solr入门体验
- inline函数的作用
- Windows XP中Eclipse C/C++开发平台构建
- 警告: git command could not be found. Please create an alias or add it to yo
- HTTP格式
- 安装msi安装包提示"在未标记为正在运行时,调用了RunScript”解决办法
- Android-PullToRefresh 分页请求网络数据的使用
- 告别where 1=1 最佳方案分享
- zlib库交叉编译方法
- 英文自我介绍合集
- Count and Say
- solr 环境搭建按照步骤就能搭建好