centos 7 安装git

How to install Latest Git ( Git 2.x ) on CentOS 7

  1. Remove old git
    sudo yum -y remove git
    sudo yum -y remove git-*
  2. Add End Point CentOS 7 repo
    sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
  3. Once repository is added, install Git 2.x on CentOS 7:
    sudo yum install git
  4. Check git version after installing git2u-all package
    git --version
posted @ 2024-05-13 22:20  wolbo  阅读(11)  评论(0编辑  收藏  举报