[+] 更新 Git 镜像源
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Failing after 12m13s

This commit is contained in:
Martin 2025-04-10 16:12:07 +08:00
parent 2cdf1bf16d
commit a031b90da9

View File

@ -5,7 +5,7 @@ if command -v git > /dev/null 2>&1; then
echo "git 已安装,正在配置镜像源..."
# 曾经设置过的强制取消
git config --global --unset url."https://git-proxy.hk.martin98.com/".insteadOf
git config --global url."https://git-proxy.hk.martin98.com/https://github.com/".insteadOf "https://github.com/"
git config --global url."https://git.mirrors.martin98.com/https://github.com/".insteadOf "https://github.com/"
echo "镜像源配置完成。"
else
echo "git 不存在,跳过..."