Why does GitHub recommend HTTPS over SSH?

后端 未结 7 2075
星月不相逢
星月不相逢 2020-12-02 03:44

On the GitHub site there is a link...

https://help.github.com/articles/generating-ssh-keys

... and it states...

If you have decided no

7条回答
  •  执笔经年
    2020-12-02 04:18

    Also see: the official Which remote URL should I use? answer on help.github.com.

    EDIT:

    It seems that it's no longer necessary to have write access to a public repo to use an SSH URL, rendering my original explanation invalid.

    ORIGINAL:

    Apparently the main reason for favoring HTTPS URLs is that SSH URL's won't work with a public repo if you don't have write access to that repo.

    The use of SSH URLs is encouraged for deployment to production servers, however - presumably the context here is services like Heroku.

提交回复
热议问题