How to change git shell's start directory in windows 7
- Right click on Git Shell
- Choose Properties
- Move to the end of the Target field
- Change
--open-shell
to--open-shell=c:\your_dir
1.Open GitHub Windows client.
2.Click tools (at the top of the window) and select 'Options'.
3.There you will find 'default storage location'. This is where Git Shell starts when you run it.
When I use @ssmith's answer it opens up in the right directory but does not have any of the features of posh-git. When I open it up normally it say s posh-git in the title, when I add this configuration it just says powershell...
I figured it out, use/create the file
C:\Users\yourUserName\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
(the default profile) and then add the line mentioned above
Set-Location C:\Your\Start\Directory