简体   繁体   English

git bash 在每个命令上突然变慢,不仅是 git 命令

[英]git bash suddenly slow on every command not only git command

I have git bash in WIN 10. Since last week suddenly every command (ls, cd, git, ...) runs very slow, even ctrl-c.我在 WIN 10 中有 git bash。从上周开始,突然每个命令(ls、cd、git,...)运行速度非常慢,甚至 ctrl-c。 After type a command it pauses, and then shows result, before command completes, it pauses another while.输入命令后会暂停,然后显示结果,命令完成前会暂停一段时间。 I remembered last week there was a 3D Graphics GPU something in notification corner during that time.我记得上周那段时间在通知角落有一个 3D 图形 GPU。 I checked that I don't have GPU in this PC, and it is GeForce 630 with a 2017 driver.我检查了这台 PC 中没有 GPU,它是带有 2017 驱动程序的 GeForce 630。 (heard that AMD driver can cause such problem). (听说 AMD 驱动程序会导致此类问题)。

Things we should try these steps in its order:我们应该按顺序尝试这些步骤:

  1. Booting into a safe mode - to make sure if the windows may work w/o issues with this software;启动到安全模式 - 确保 Windows 可以在没有此软件问题的情况下工作;
  2. Reintalling of git bash ;重新安装git bash
  3. Checking the Event Viewer - so see if anything specific to the git bash application is logged there;检查Event Viewer - 所以看看那里是否记录了特定于 git bash 应用程序的任何内容;
  4. Uninstalling any recent software you have installed last session or two;卸载您在上一两次会话中安装的任何最新软件;
  5. Disabling all auto-load programs and anti-viruses/windows defender (just for the sake of test) - in most cases that shouldn't be an issue;禁用所有自动加载程序和防病毒/Windows Defender(只是为了测试) - 在大多数情况下这应该不是问题;
  6. Try using Restore point if you have any;如果有,请尝试使用Restore point
  7. reinstalling windows 10 (least desireable probably).重新安装 Windows 10(可能最不理想)。

1 Safe Mode | 1 安全模式 | Try closing everything except the git bash or as an alternative, you could go into the safe mode in windows 10尝试关闭除 git bash 之外的所有内容,或者作为替代方法,您可以在 Windows 10 中进入安全模式

How to do that see here;如何做到这一点,请参见此处; it loads only necessary configuration 它只加载必要的配置

2 Reintalling of git bash 2 重新安装git bash

Is most straghforward way to resolve this;是解决这个问题的最直接的方法;

Open Event viewer in windows 10 by chosing of the following methods:通过选择以下方法在 Windows 10 中打开事件查看器:

  • control panel => administration tools => event viewer ); control panel => administration tools => event viewer );
  • (By opening the search and typing| Win => just type event viewer ) - " event viewer "; (通过打开搜索和输入| Win => 只需输入event viewer )-“ event viewer ”;
  • by opening Run command (using Win + R => eventvwr );通过打开运行命令(使用Win + R => eventvwr );

3 Checking the Event Viewer 3 检查Event Viewer

Then try checking windows logs:然后尝试检查 Windows 日志:

  • application logs - records events related to Windows system components, such as drivers and built-in interface elements;应用程序日志 - 记录与 Windows 系统组件相关的事件,例如驱动程序和内置界面元素;
  • system logs - records events related to programs installed on the system.系统日志 - 记录与系统上安装的程序相关的事件。

You must be looking at the column Level ( Error ) after you have tried to run the commands (that freezes you git bash).在您尝试运行命令(这会冻结您的 git bash)后,您必须查看列Level ( Error )。 Look at the date and time column to check the most recent one.查看日期和时间列以检查最近的一列。

Then by going to eventvwr you may see some new warning/error (most probably that hangs up your console) See the Event viewer error example (you could use error message and Event ID to google the problem):然后通过转到eventvwr您可能会看到一些新的警告/错误(很可能会挂断您的控制台)查看Event viewer错误示例(您可以使用错误消息和事件 ID 来搜索问题): 在此处输入图片说明

4 Uninstalling any recent software 4 卸载任何最近的软件

control panel => programs and features - try uninstalling it after which you may have noticed this behavior. control panel => programs and features - 尝试卸载它,之后您可能已经注意到了这种行为。

please let us know if anything of the given solution works or provides you with any additional information to continue the investigation.请让我们知道给定的解决方案是否有效或为您提供任何其他信息以继续调查。 Or even solve the problem.甚至解决问题。

5 Disabling all auto-load programs and anti-viruses/windows defender 5 禁用所有自动加载程序和防病毒/Windows Defender

  1. Open your Task manager ;打开你的Task manager
  2. Go to Starup tab;转到Starup选项卡;
  3. Disable everything you have there.禁用你在那里的一切。

On the legacy Windows 10 [for windows 10 users under 20h2]: Win + R => Startup tab;在旧版 Windows 10 上 [适用20h2 以下的 Windows 10 用户]: Win + R => Startup选项卡;

See How to Stop Windows 10 Apps From Launching at Startup查看如何在启动时阻止 Windows 10 应用程序启动

6 Try using Restore point if you have any 6 如果您有任何Restore point请尝试使用

See Recovery options in Windows请参阅Windows 中的恢复选项

7 Reinstalling windows 7 重新安装窗户

By going to the windows 10 website and downloading the tool in the Create Windows 10 installation media section.通过转到Windows 10 网站并在Create Windows 10 installation media部分下载该工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM