Git克隆项目时报错:
git:‘remote-https‘ 不是一个 git 命令。参见 ‘git --help‘。
解决方法:
将 /usr/libexec/git-core
纳入 PATH。
修改 /etc/profile
文件,在最后一行加入:
PATH=$PATH:/usr/libexec/git-core
保存!
使配置生效:
source /etc/profile
测试
git clone https://github.com/xxxx/xxxx.git
OK,搞定!