Skip to content

设置提交用户信息

设置当前项目的提交用户信息

bash
git config user.name 'xxx'

git config user.email 'xxx'

设置全局提交用户信息

bash
git config --global user.name 'xxx'

git config --global user.email 'xxx'

查看当前配置信息

bash
git config --list