git clone 报错,是我的问题还是网络的问题 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zxCoder
V2EX    问与答

git clone 报错,是我的问题还是网络的问题

  •  
  •   zxCoder 2021-03-02 14:50:32 +08:00 1869 次点击
    这是一个创建于 1686 天前的主题,其中的信息可能已经有所发展或是发生改变。

    git 版本 2.30.1

    git clone https://github.com/google/leveldb.git 

    报错是

    Cloning into 'leveldb'... git: 'remote-https' is not a git command. See 'git --help'. 

    改成 ssh,这样可以,但是加上 submodule 就又报错了

    git clone [email protected]:google/leveldb.git 
    git clone --recurse-submodules [email protected]:google/leveldb.git 

    报错是

    Submodule 'third_party/benchmark' ( https://github.com/google/benchmark) registered for path 'third_party/benchmark' Submodule 'third_party/googletest' ( https://github.com/google/googletest.git) registered for path 'third_party/googletest' Cloning into '/home/keane/CLionProjects/leveldb/third_party/benchmark'... git: 'remote-https' is not a git command. See 'git --help'. fatal: clone of 'https://github.com/google/benchmark' into submodule path '/home/keane/CLionProjects/leveldb/third_party/benchmark' failed Failed to clone 'third_party/benchmark'. Retry scheduled Cloning into '/home/keane/CLionProjects/leveldb/third_party/googletest'... git: 'remote-https' is not a git command. See 'git --help'. fatal: clone of 'https://github.com/google/googletest.git' into submodule path '/home/keane/CLionProjects/leveldb/third_party/googletest' failed Failed to clone 'third_party/googletest'. Retry scheduled Cloning into '/home/keane/CLionProjects/leveldb/third_party/benchmark'... git: 'remote-https' is not a git command. See 'git --help'. fatal: clone of 'https://github.com/google/benchmark' into submodule path '/home/keane/CLionProjects/leveldb/third_party/benchmark' failed Failed to clone 'third_party/benchmark' a second time, aborting 
    6 条回复    2021-03-02 21:49:46 +08:00
    imdong
        1
    imdong  
       2021-03-02 14:53:36 +08:00
    似乎还是因为 clone 了 https 导致的问题.

    没遇到过,建议参考 https://www.google.com.hk/search?q=git%3A+%27remote-https%27+is+not+a+git+command.
    zxCoder
        2
    zxCoder  
    OP
       2021-03-02 14:58:29 +08:00
    @imdong 谷歌过了 试了好多都没能解决
    zxCoder
        3
    zxCoder  
    OP
       2021-03-02 14:58:44 +08:00
    补充:是 Linux 系统
    LRvx
        4
    LRvx  
       2021-03-02 21:18:18 +08:00
    你这个 git 的版本是自己源码编译的吗,我记得之前自己装 git 的时候会漏掉 libexec/git-core 里的一些会漏掉 git-remote-http 等文件,导致 https 不能 clone,完整的安装就没这个问题了
    zxCoder
        5
    zxCoder  
    OP
       2021-03-02 21:46:20 +08:00
    @LRvx 我猜确实是这个问题。。。。apt 安装了一个就好了
    LRvx
        6
    LRvx  
       2021-03-02 21:49:46 +08:00
    @zxCoder 找一个靠谱的教程重新装一下吧,我记得我装的当时要 openssl 等依赖,如果没装好,就有这个问题
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     966 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 22:23 PVG 06:23 LAX 15:23 JFK 18:23
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86