I have read Configuring Git over SSH to login once. Muein Muzamil's answer says that to use SSH, we must configure as follows:
remote.origin.url=git@github.com:your_username/your_project.git
Which is to say, that in a normal Windows PowerShell, SSH does not work with HTTPS.
GitHub for Windows comes with the Git Shell. It's a souped-up PowerShell with some fancy features, including the ability to use SSH with HTTP. I know this because I just ran git push
without needing to authenticate, and then ran git config -l
to see that I am using HTTPS as the remote origin url.
Why does a normal Windows PowerShell require the git@github.com protocol whereas a Git Shell does not?