git 多用户配置

每个 git 仓库都可以配置独属于自身的用户,如果自身没有配置就会使用全局的。

# 单个仓库配置
git config user.name '用户名'
git config user.email '电子邮箱'

# 全局配置
git config --global user.name '用户名'
git config --global user.email '电子邮箱'

猜你喜欢

转载自www.cnblogs.com/xmsx/p/11580048.html
今日推荐