使用Cygwin挂起Git Status [英] Git Status hangs using Cygwin

查看:72
本文介绍了使用Cygwin挂起Git Status的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows机器上,我有一个与msysgit配合良好的存储库.但是,当我尝试在cygwin上运行 git status 时,它只是挂起,没有打印任何内容,直到按Ctrl-C为止.

On my Windows machine, I have a repository that works nicely with msysgit. But when I try running git status on cygwin, it just hangs, without printing anything until I press Ctrl-C.

我该如何调查这种行为的原因?

How can I investigate this to find out the reason for such behaviour?

推荐答案

其原因是

The reason for this was the difference in core.autocrlf setting. When install git for windows, I set it to automatically convert line endings in both directions, so the files in the filesystem were actually different from the files saved in git history - but windows git always hid these differences.

与此同时,cygwin git的运行速度非常慢,因为它检测到我的存储库中成千上万个文本文件的每一行都存在差异.

Meanwhile, cygwin git was working extremely slow because it detected differences in every line of thousands of text files in my repository.

这篇关于使用Cygwin挂起Git Status的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆