1-1安装

  1. yum install git
  2. git --version //可以查看是否安装成功
  3. tips如没有yum命名 需使用这个命名:sudo apt install yum

1-2 配置用户名和邮箱

  1. git config --global user.name "chengbenchao"
  2. git config --global user.email "xx"
  3. git config --global --list

image.png