Create gitfix.sh

This commit is contained in:
Faker 2024-08-20 16:44:42 +08:00
parent 31a3de3a4c
commit 58ada1c300

23
Scripts/sh/gitfix.sh Normal file
View File

@ -0,0 +1,23 @@
#!/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"