1.设置用户名
[ruby] view plain copy print?
- $ git config --global user.name "yourname"
$ git config --global user.name "yourname"
2.设置用户邮箱
[ruby] view plain copy print?
- $ git config --global user.email [email protected]
$ git config --global user.email [email protected]
3.查看git设置列表信息
[ruby] view plain copy print?
- $ git config --list
$ git config --list
4.查看用户名
[ruby] view plain copy print?
- $ git config user.name