init/init-git.sh

8 lines
252 B
Bash

#!/bin/bash
# 检查 git 是否安装
if command -v pip &> /dev/null; then
echo "git 已安装,正在配置镜像源..."
git config --global url."https://git-proxy.hk.martin98.com/".insteadOf "https://"
echo "镜像源配置完成。"
fi