Alvaro Joao Alvaro Joao - 1 year ago 95
Git Question

Why https is better (recommended) than git in github sites

I just notice that the github is recommending the

protocol over the

Can someone tell me why, at first, The github recommended git with ssh keys and now they are recommending the https protocol to update and use the repositories?


Answer Source

Based on the link provided by @Jonathan.Brink, the main advantages motivating GitHub's recommendation of HTTPS over SSH URLs is that

  1. it typically works in places where SSH and plain-Git protocols get blocked (and can sometimes be faster)
  2. it allows for two-factor authentication using a personal access token
  3. it will always verify the server (though this may not be as secure as one would hope)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download