Friday, August 16, 2013

Make Git Faster on Windows

Just a note to make git faster on windows

*Located C:\Users\{username}\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

*And insert this.
 $GitPromptSettings.RepositoriesInWhichToDisableFileStatus = "C:\Projects\{wherever your repo may be}\Online\Trunk"

* WHY ?
Behind the scenes posh-git is running a format of “git status” to be able to tell you if any files have changed and that is expensive because it has to check each file in the repository.

To help regain some sanity you can disable the file status and just have the current branch presented in your prompt and manually call git status only when you need it.

No comments: