CentOS 7 安装配置git

  1. 安装
    yum install git
  2. 验证
    [root@localhost ~]# git --version
    git version 1.8.3.1
    [root@localhost ~]#
  3. 配置基本信息
    //配置基本信息
    [root@localhost ~]# git config --global user.name "flymegoc"
    [root@localhost ~]# git config --global user.email [email protected]
    //查看配置
    [root@localhost ~]# git config --list
    user.name=flymegoc
    [email protected]
    [root@localhost ~]#

猜你喜欢

转载自blog.csdn.net/ngl272/article/details/70217103