Git Bash (mintty) 在 Windows 10 操作系统上非常慢 [英] Git Bash (mintty) is extremely slow on Windows 10 OS

查看:97
本文介绍了Git Bash (mintty) 在 Windows 10 操作系统上非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月前,我在 Windows 10 上安装了 Git.它工作了一段时间.但是现在,它的运行速度很慢.

I installed Git on my Windows 10 a couple of months ago. It worked well for some time. But now, it's running very slow.

git status 命令需要 7 秒 执行,而 git stash 需要 很多分钟 来执行 (即使没有什么可存放的).另外,我想指出的是 git status 会立即打印结果,但是我在几秒钟内无法输入新命令,如下图所示.

The git status command takes 7 seconds to execute, and git stash takes many minutes for stashing (even if there is nothing to stash). Also, I would like to point out that git status prints the result instantaneously, but I can not enter a new command for a few seconds, as shown in the image below.

我已经尝试过类似问题的解决方案,例如 link1link2 等,但这些都不起作用.

I have tried solutions to similar problems like link1, link2, etc., but none of these have worked.

P.S.:我使用的是 Windows Defender 防病毒软件,它不会让我的 Bash 变慢.此外,cmd 需要更多时间来执行 git 命令,而 git bash 需要更长的时间来运行任何命令.

P.S.: I use Windows Defender antivirus, and it is NOT making my Bash slow. Also, cmd takes more time to execute git commands while git bash takes longer to run any command.

更新:我已切换到 Ubuntu,因此,我目前不使用 Windows.因此,我无法检查是否有任何解决方案适合我.我接受了 @pschild 提供的答案,因为它获得了最多的支持,并且似乎对很多人都有效.

Update: I have switched to Ubuntu, and therefore, I don't use Windows presently. So, there is no way I can check if any of the solutions work for me. I have accepted the answer provided by @pschild since it has the most upvotes and seems to have worked for many people.

推荐答案

我最近遇到了完全相同的问题.在尝试了该线程和许多其他线程的所有建议后,我终于找到了解决方案 这里,分别在链接问题这里.

I recently ran into the exact same issue. After trying all the advice from this thread and a lot of other threads, I finally found a solution here, respectively in the linked issue here.

在 Windows 设备管理器中禁用 AMD Radeon 显卡驱动程序并切换到集成 Intel HD 显卡对我有用 - 无论出于何种原因.

Disabling AMD Radeon graphics driver in the Windows device manager and switching to integrated Intel HD graphics worked for me - for whatever reason.

希望对您有所帮助!

就我而言,我发现 sh.exe shell 比 bash.exe 快得多.你可以在 git_install_dir/bin 中找到 sh.exe.

In my case, I found sh.exe shell to be significantly faster than bash.exe. You can find sh.exe in git_install_dir/bin.

希望这有助于人们在仅集成英特尔高清显卡时遇到此问题!

Hope this helps people having this issue while only having integrated Intel HD graphics!

这篇关于Git Bash (mintty) 在 Windows 10 操作系统上非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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