1.Centos7: install git2.x

https://ius.io/

curl https://setup.ius.io | sh     # 自动化安装脚本
yum search git                         # 看到 git2u相关内容
yum remove -y git | yum -y install git2u   # 执行安装


2.Centos8:  yum install git


3.git --version      # 查看版本


4. https://git-scm.com/download/linux


5. 更新 Git 版本导致

-fatal: detected dubious ownership in repository

git config --global --add safe.directory "*";


签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回