Git 配置指南
2024/3/5小于 1 分钟
Git 配置指南
查看配置信息
git config --list配置用户信息
git config --global user.name "Your Name"
git config --global user.email "email@example.com"配置代理
设置全局代理
git config --global http.proxy http://127.0.0.1:7890git config --global https.proxy https://127.0.0.1:7890取消设置全局代理
git config --global --unset http.proxygit config --global --unset https.proxy设置对 GitHub 代理
git config --global http.https://github.com.proxy http://127.0.0.1:7890git config --global https.https://github.com.proxy https://127.0.0.1:7890取消设置对 GitHub 代理
git config --global --unset http.https://github.com.proxygit config --global --unset https.https://github.com.proxy