cromwellryan/psgist — Issue #1: Use PSCredential
Author: dahlbyk
Created: 2012-03-02 04:46:23+00:00
State: open

`$Username` parameter should be replaced by `[Management.Automation.PSCredential]$Credential = $(Get-Credential)` or something to that effect. If you specify a username, it will ask for a password; if you don't, it will ask for both. After confirming the credentials are valid for GitHub, you could then cache them for the duration of the PowerShell session.