github使用问题与解决方案
# 查看配置
- 查看全局配置
git config --list --global
# github为项目单独设置用户名与邮箱
有时公司项目与个人项目的用户名与邮箱不同,此时需要隔离用户名
在项目文件夹下执行
git config user.name '账号名'
git config user.email '邮箱名'
执行后会在.git config生成[user].name/.email配置
# github使用代理
- 单独为github设置代理
# 设置代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:1011
# 取消代理
git config --global --unset http.https://github.com.proxy
编辑 (opens new window)
上次更新: 2023/02/11, 06:11:10