Linux – git: command not found

出错原因:服务器没有安装GIT,所以导致出错。

解决方法:

Centos下使用:yum install git -y  或者  yum install -y git

Ubuntu/Debian下使用 : apt-get install git -y