hit9
V2EX  ›  问与答

为什么现在大家推荐https url, 而不是git:// 也不是 ssh url呢

  •  
  •   hit9 · Jul 2, 2013 · 7589 views
    This topic created in 4726 days ago, the information mentioned may be changed or developed.


    Repository Next 隐藏了git:// url, 但是我们知道它仍然有效。

    Twitter上github职工@holman说https是更推荐的方式。

    昨天我在oschina 上的git服务也听红薯说更推荐https, 可是为什么呢?

    我觉得git:// url相比https十分可靠,很少挂掉.
    5 replies    2018-02-26 11:18:06 +08:00
    clippit
        1
    clippit  
       Jul 2, 2013
    我认为HTTP/HTTPS因为走的是使用非常广泛的协议,反而不会出问题(比如git/SSH端口被防火墙block之类的)
    binux
        2
    binux  
       Jul 2, 2013
    我认为git是使用的ssh协议,一般的实现是对于每一个连接fork一次,不如http服务器这样天生面对高并发实现方式效率高
    hit9
        4
    hit9  
    OP
       Jul 2, 2013
    cevincheung
        5
    cevincheung  
       Feb 26, 2018
    mac 下 git:// 可以很方便的进行管理 sshkey 啥的。https 方式还要找地方存密码
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1141 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:10 · PVG 07:10 · LAX 16:10 · JFK 19:10
    ♥ Do have faith in what you're doing.