方法
- 在我的电脑打开本地项目,在项目所在目录打开GIT bash 命令框
- 查看相关信息
查看用户信息,邮箱信息, 整体配置等
# 查看所有配置
git config --list
# 查看用户信息
git config user.name
# 查看邮箱信息
git config user.email
- 更改
# 更改用户或者邮箱信息
git config --global user.name “用户名”
git config --global user.email “邮箱地址”
- 替换
git config --global --replace-all user.name “用户名”
git config --global --replace-all user.email “邮箱地址”
- 取消设置
git config --global --unset user.name “用户名”
git config --global --unset user.email “邮箱地址”