1.配置user 的信息(配置之后,谁提交的会展示其user.name):
即配置user.name和user.email
git config --global user.name 'your_name'
git config --global user.email 'your_email'
config后面可以选择参数:
git config --local (local只对某个仓库有效,缺省等同于local)
git config --global (global 对当前用户所有仓库有效,一般都是用这个)
git config --system (system对系统所有登录的用户有效)
2.显示config 的配置,加--list
git config --list --local
git config --list --global
git config --list --system

网友评论