Git修改邮箱设置

  • 时间:
  • 来源:新网

   

1、设置所有repository的邮箱地址,也就是全局邮箱地址:

t01958a10f535eaffe7.jpg

1)打开Git Bash,直接去程序列表中打开;

2)通过git config输入你你想设置的邮箱地址:

 

$ git config --global user.email "email@example.com"

 

3)通过git config确定是否设置正确:

 

$ git config --global user.email email@example.com 2、也可以针对指定repository设置邮箱地址:

 

1)打开Git Bash,切换到指定工作目录或者直接在指定工作目录右键打开Git Bash;

2)同全局邮箱设置操作相同,此处不累赘;