Git报错git: ‘remote-http‘ is not a git command. See ‘git --help‘

目录

  • 一、问题描述
  • 二、解决方法


一、问题描述

CentOS 7 下执行 git clone http://xxxx 命令时报错,Git 版本为 2.35.1 :

git: 'remote-http' is not a git command. See 'git --help'

二、解决方法

安装 libcurl-devel、curl-devel ,然后重新编译 git :

yum install libcurl-devel
yum install curl-devel

注意:重要的事情说三遍,安装后重新编译 git !

你可能感兴趣的:(常见问题解答(FAQ),git,http,centos)