search

Home  >  Q&A  >  body text

What is the difference between git and git+ssh and git+https in npm?

Just like the title~ A discerning person can tell at a glance that git ssh uses ssh, but what is the difference between git and git? Then we usually write git directly when we clone, why not write git ssh directly?

PHP中文网PHP中文网2792 days ago656

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-05-02 09:27:51

    git, ssh, https are three different protocols.

    Please see the official website documentation for details

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-02 09:27:51

    Git itself supports both http(s) and ssh protocols. If you git clone一个https://的URL,Git就调用http协议的后端,如果git clone一个ssh:// the URL, the ssh backend will be called.

    reply
    0
  • Cancelreply