`

git 升级,防漏洞

    博客分类:
  • git
 
阅读更多

1.centos7 修改为yum安装源

 

wget http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm && rpm -ivh wandisco-git-release-7-1.noarch.rpm

 2.安装git

 

 

yum install git -y

 3.测试漏洞

 

 

git init test && cd test && git update-index --add --cacheinfo 120000,e69de29bb2d1d6434b8b29ae775ad8c2e48c5391,.gitmodules
Initialized empty Git repository in /tmp/test/test/.git/
error: Invalid path '.gitmodules'
fatal: git update-index: --cacheinfo cannot add .gitmodules

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics