Git 本地配置
添加、修改、删除以及查看本地git的用户名和邮箱
1、添加
1 | $ git config --global user.name "yourName" |
2、修改
1)覆盖的形式:
1 | $ git config --global user.name "yourName" |
2)替换的形式:
1 | $ git config --global --replace-all user.name "yourName" |
3、删除
1 | $ git config --global --unset user.name "yourName" |
4、查看
1)查看所有:
1 | $ git config --list |
2)查看指定信息:
1 | $ git config user.name |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
