子模块存在时,Git差异会在Windows上崩溃 [英] Git diffing crashes on Windows when submodules exist
本文介绍了子模块存在时,Git差异会在Windows上崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Windows上使用 msysgit ,每当我做 git diff
在一个具有子模块或多个子模块的存储库上,命令提示符(也是PowerShell)崩溃。
这是一个已知的,但有没有修复/解决方法吗?我可以从diff中排除子模块吗?
另外:
PS Z :\www\gittest> git --version
git version 1.7.6.msysgit.0
编辑:在msysgit google群组上已被举报 。
解决方案
我无法用diff和submodules重现这些问题,但是如果您不关心子模块diff,那么您可以这样做:
git diff --ignore-submodules
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.
解决方案
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
这篇关于子模块存在时,Git差异会在Windows上崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文