ubuntu用源码安装git,clone时报错git: ‘remote-https‘ is not a git command

安装Git时,make过程缺少文件,没有生成remote-https文件,先执行命令:

sudo apt-get install libcurl4-openssl-dev

 然后在进行 

sudo make &&make install

再次clone就没问题了,

mu@mu-virtual-machine:~/下载/git-2.35.1$ git clone https://github.com/xxxxxx/test.git
正克隆到 'office_worker'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
接收对象中: 100% (3/3), 完成.

你可能感兴趣的:(git)