是否可以为单个存储库禁用 posh-git?
Is it possible to disable posh-git for individual repositories?
我喜欢 posh-git powershell env for git,但在某些(非常大的)存储库中,它会明显减慢 ps 提示。
我想知道是否可以在某些特定存储库上禁用它
为了提高性能,他们确实建议了一种禁用每个存储库文件状态的方法:
https://github.com/dahlbyk/posh-git#customization-variables
Note on performance: Displaying file status in the git prompt for a very large repo can be prohibitively slow. Rather than turn off file status entirely ($GitPromptSettings.EnableFileStatus = $false), you can disable it on a repo-by-repo basis by adding individual repository paths to $GitPromptSettings.RepositoriesInWhichToDisableFileStatus.
我喜欢 posh-git powershell env for git,但在某些(非常大的)存储库中,它会明显减慢 ps 提示。
我想知道是否可以在某些特定存储库上禁用它
为了提高性能,他们确实建议了一种禁用每个存储库文件状态的方法:
https://github.com/dahlbyk/posh-git#customization-variables
Note on performance: Displaying file status in the git prompt for a very large repo can be prohibitively slow. Rather than turn off file status entirely ($GitPromptSettings.EnableFileStatus = $false), you can disable it on a repo-by-repo basis by adding individual repository paths to $GitPromptSettings.RepositoriesInWhichToDisableFileStatus.