使用apt安装git:

sudo apt-get install git