git shell on Windows reports “sh.exe has stopped working (APPCRASH)”

时光总嘲笑我的痴心妄想 提交于 2019-12-12 15:12:50

问题


I have tried both the Git shell installed by GitHub and that provided by Git for Windows on my Windows Server 2012 R2 virtual machine on XenServer 6.20

With each, git command line calls fail with the message

sh.exe has stopped working (APPCRASH)

This is a recent problem. Can anyone advise me of a solution?


回答1:


The issue appears to be caused by the XenServer 6.20 Guest tools I installed after first installing git.

There is an update for Windows Server 2012 R2. Alternatively, you can uninstall the guest tools, which is what I did.

FYI, I also posed this solution at jira.atlassian.com




回答2:


This error went away after building GIT for Windows from Sources (version 3.2)

The instaler on the official page is too old.

See this post for detailed instructions on how to build from sources:

http://www.drupalonwindows.com/en/blog/build-git-windows-sources

And this other post on how to workaround the issue:

http://www.drupalonwindows.com/en/blog/git-shell-windows-reports-shexe-has-stopped-working-appcrash



来源:https://stackoverflow.com/questions/21550807/git-shell-on-windows-reports-sh-exe-has-stopped-working-appcrash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!