0%

设置Git用户名和邮箱

为所有Repository设置统一的用户名和邮箱

1
2
$ git config --global user.name "Rick"
$ git config --global user.email "myslsh_2015@163.com"

为当前Repository单独设置用户名和邮箱

1
2
$ git config user.name "User"
$ git config user.email "user@example.com"

查看全局设置

1
2
$ git config --global user.name
$ git config --global user.email

查看当前设置

1
2
$ git config user.name
$ git config user.email