Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.

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

Tags: git, powershell, posh-git, ssh

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.


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

Import-Module Posh-Git