用戶名和郵箱的作用:
用戶名和郵箱地址相當於你的身份標識,是本地Git客戶端的一個變量,不會隨着Git庫而改變。
每次commit都會用用戶名和郵箱紀錄。
github的contributions跟你的郵箱是有關聯的。
查看自己的用戶名和郵箱地址:
$ git config user.name
$ git config user.email
修改自己的用戶名和郵箱地址:
$ git config --global user.name "xxx"
$ git config --global user.email "xxx"