且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Git Bash(mintty)在Windows 10操作系统上非常慢

更新时间:2023-02-22 18:05:27

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



在Windows设备管理器中禁用AMD Radeon图形驱动程序,然后切换至集成英特尔高清显卡为我工作 - 无论什么原因。



希望有帮助!

I installed git on my Windows 10 a couple months ago. It worked fine for some time. But now, it's running so slow.
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.

I have tried surfing the net for solutions to my problem like this, this, etc. but none of these have worked.

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 a longer time to execute any command.

Update: I have switched to Ubuntu now 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 am accepting the answer provided by @pschild since it has the most number of 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.

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

Hope that helps!