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

带着疑问去思考,然后串联,进而归纳总结,不断追问自己,进行自我辩证,像侦查嫌疑案件一样看待技术问题,漆黑的街道,你我一起寻找线索,你就是技术界大侦探福尔摩斯
原文地址:https://www.cnblogs.com/cainiao-Shun666/p/14838206.html