今天在更新MalodyMirror的时候遇到了些问题
因为不想浪费手机的流量于是就直接使用服务器clone下库了
然后就遇到了很多麻烦
这里记录一下
git 版本过低 不默认使用gpg
- 依赖安装
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc yum install gcc perl-ExtUtils-MakeMaker
- 卸载旧版
yum remove git
下载解压编译安装
cd /usr/local/src/ wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.32.0.tar.xz tar -xvf git-2.32.0.tar.xz cd git-2.32.0 make prefix=/usr/local/git all make prefix=/usr/local/git install
最后检查一下版本
git --version
- 文件大于100M,github拒收
这个时候就得安装git-lfshttps://github.com/git-lfs/git-lfs
然后进Release
下最新对应版本解压
运行bash install.sh
出现Git LFS initialized.
即可 - gpg无法直接输出密码交互窗口,导致报错
echo "export GPG_TTY=$(tty)" >> /etc/profile && source /etc/profile
解决