1.打开终端,输入命令
sudo apt update
输入密码,确认授权。
3.输入命令。
sudo apt install git
输入Y,确认命令执行。
5.看安装版本,输入命令,。
git --version