Posh-Git: Avoid having to input your username and password for each push

Phil Haack gives the steps here: http://haacked.com/archive/2011/12/19/get-git-for-windows.aspx/

  1. Install msysgit (aka Git for Windows).
  2. Update Posh-Git
  3. Add the ssh-agent to your PATH.

This worked for me. The only challenge was step 2, because I had trouble installing PsGet. So I wrote another blog post to explain my resolution.

Troubleshooting

If ssh-agent keeps prompting for the password, manually run the following:

Import-Module Posh-Git
Start-SshAgent