跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • git clone 报错,是我的问题还是网络的问题
未分類
22 2 月 2021

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

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

資深大佬 : zxCoder 2

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)

  • 資深大佬 : imdong

    似乎还是因为 clone 了 https 导致的问题.

    没遇到过,建议参考 https://www.google.com.hk/search?q=git%3A+%27remote-https%27+is+not+a+git+command.

  • 主 資深大佬 : zxCoder

    @imdong 谷歌过了 试了好多都没能解决

  • 主 資深大佬 : zxCoder

    补充:是 Linux 系统

  • 資深大佬 : LRvx

    你这个 git 的版本是自己源码编译的吗,我记得之前自己装 git 的时候会漏掉 libexec/git-core 里的一些会漏掉 git-remote-http 等文件,导致 https 不能 clone,完整的安装就没这个问题了

  • 主 資深大佬 : zxCoder

    @LRvx 我猜确实是这个问题。。。。apt 安装了一个就好了

  • 資深大佬 : LRvx

    @zxCoder 找一个靠谱的教程重新装一下吧,我记得我装的当时要 openssl 等依赖,如果没装好,就有这个问题

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具