Git(二)

GIT 查看/修改用户名和邮箱地址

用户名和邮箱地址的作用

用户名和邮箱地址是本地git客户端的一个变量,不随git库而改变。

每次commit都会用用户名和邮箱纪录。

github的contributions统计就是按邮箱来统计的。

##查看用户名和邮箱地址:

$ git config user.name
$ git config user.email

##在git 分支中可以如下查看用户名和密码的存储配置文件,并进行修改:

$ git config --global  -e 

##修改用户名和邮箱地址:

$ git config --global user.name 'username'
$ git config --global user.email 'email'

转载:https://blog.csdn.net/qq_34830467/article/details/83539475

 

posted @ 2021-06-01 17:43  迷走神经  阅读(38)  评论(0编辑  收藏  举报