系统级用户:
命令行:
git config --global user.name jack
git config --global user.email 101794@163.com
系统用户的相关信息会保存到C:\Users\10179.gitconfig中
如图所示:
项目级用户:
命令行:
git config user.name tom
git config user.email 10179494@qq.com
项目级用户的相关信息会保存到:wechat(项目)下的.git下的config文件中
如图所示:
最后:
1 如果两者都存在,项目级用户优先。
2 一般情况下我们只需要设置一个系统用户就行了。不需要都设置。