1、安装git
sudo apt-get install git
输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
snapd ubuntu-core-launcher
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
2、查看git版本
git --version
输出:
git version 2.7.4