faker3/jd_gitfix.sh
2024-11-12 11:17:55 +08:00

23 lines
746 B
Bash

#!/usr/bin/env bash
#依赖安装,运行一次就好
#0 2 * * * jd_gitfix.sh
#new Env('github拉库修复')
#
# 设置 http.postBuffer
echo "设置 github缓存配置.....\n"
git config --global http.postBuffer 524288000
# 查看 http.postBuffer 配置
echo "查看缓存配置 配置为:524288000 则成功\n"
POST_BUFFER_VALUE=$(git config --global http.postBuffer)
echo "http.postBuffer 的值是: $POST_BUFFER_VALUE"
# 设置 http.sslVerify
echo "设置 github拉库SSL检验配置....\n"
git config --global http.sslVerify "false"
# 查看 http.sslVerify 配置
echo "查看 github拉库SSL检验配置 配置为false则成功\n"
SSL_VERIFY_VALUE=$(git config --global http.sslVerify)
echo "http.sslVerify 的值是: $SSL_VERIFY_VALUE"