Git diffing crashes on Windows when submodules exist

怎甘沉沦 提交于 2020-01-01 11:49:03

问题


Using msysgit on windows, whenever I do git diff on a repository that has a submodule or several, the command prompt (and also PowerShell) crash.

Is this a known but and is there a fix/workaround? Can I exclude submodules from diff?

Also:

PS Z:\www\gittest> git --version
git version 1.7.6.msysgit.0

EDIT: This has also been reported on the msysgit google group.


回答1:


I can't reproduce such issues with diff and submodules, but if you don't care about submodules diff, you can do:

git diff --ignore-submodules



回答2:


I fixed this by installing Microsoft kb2458000 (The conhost.exe process crashes when an application exits on Windows 7 or Windows Server 2008 R2).



来源:https://stackoverflow.com/questions/8084339/git-diffing-crashes-on-windows-when-submodules-exist

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