Ste*_*t_R 2 powershell posh-git
我喜欢git的posh-git powershell env,但在一些(非常大的)存储库上,它明显减慢了 ps 提示。
我想知道是否可以在某些特定存储库上禁用它
为了性能,他们确实建议了一种禁用每个存储库文件状态的方法:
https://github.com/dahlbyk/posh-git#customization-variables
性能注意事项:在 git 提示中为一个非常大的 repo 显示文件状态可能会非常慢。而不是完全关闭文件状态($GitPromptSettings.EnableFileStatus = $false),您可以通过将单个存储库路径添加到 $GitPromptSettings.RepositoriesInWhichToDisableFileStatus 来逐个存储库地禁用它。