天天看點

解決:git: command not found、apt-get: command not found、git 安裝

運作 git 失敗,因為沒有安裝 git。

于是就安裝:apt-get install git,于是得到後一個報錯。

原來 apt-get 指令不适用于 CentOS ,在 CentOS 下的安裝指令是:yum 。

于是重新安裝 git :

yum -y install git           

複制

解決:git: command not found、apt-get: command not found、git 安裝

裝好後檢視版本:

解決:git: command not found、apt-get: command not found、git 安裝