Git diffing crashes on Windows when submodules exi

2019-04-10 16:22发布

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.

2条回答
放我归山
2楼-- · 2019-04-10 16:51

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
查看更多
登录 后发表回答