在终端窗口输入一下命令,即可

# 设置Github,使用 https:// 来替换 git://
git config --global url."https://".insteadOf git://

# 设置代理
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890

想查看git的所有配置

git config --global -l

想取消刚才的配置

git config --global --unset url."https://".insteadOf
git config --global --unset http.proxy
git config --global --unset https.proxy
Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐