且构网

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

Git Bash 在 Windows 7 x64 上非常慢

更新时间:2022-12-02 17:18:55

看来完全卸载 Git、重新启动(经典的 Windows 解决方案)并重新安装 Git 是解决方案.我还清除了剩下的所有 bash 配置文件(它们是手动创建的).一切又变得很快了.

It appears that completely uninstalling Git, restarting (the classic Windows cure), and reinstalling Git was the cure. I also wiped out all bash config files which were left over (they were manually created). Everything is fast again.

如果由于某种原因无法(或不可取)重新安装,那么我肯定会尝试更改 Chris Dolan 中引用的 PS1 变量回答;它导致某些操作的显着加速.

If for some reason reinstalling isn't possible (or desirable), then I would definitely try changing the PS1 variable referenced in Chris Dolan's answer; it resulted in significant speedups in certain operations.