git配置文件config用户名和邮箱的设置和查看

1.设置用户名

[ruby] view plain copy print?

  1. $ git config --global user.name "yourname"  
$ git config --global user.name "yourname"


2.设置用户邮箱

[ruby] view plain copy print?

  1. $ git config --global user.email [email protected]   
$ git config --global user.email [email protected]


3.查看git设置列表信息

[ruby] view plain copy print?

  1. $ git config --list   
$ git config --list


4.查看用户名

[ruby] view plain copy print?

  1. $ git config user.name   

猜你喜欢

转载自my.oschina.net/iioschina/blog/1649232