GIT 查看/修改用戶名和郵箱地址(轉自https://blog.csdn.net/autoliuweijie/article/details/52230165)

1、用戶名和郵箱地址的作用

用戶名和郵箱地址是本地git客戶端的一個變量,不隨git庫而改變。

每次commit都會用用戶名和郵箱紀錄。

github的contributions統計就是按郵箱來統計的。

2、查看用戶名和郵箱地址:

$ git config user.name

$ git config user.email

3、修改用戶名和郵箱地址:

$ git config --global user.name "username"

$ git config --global user.email "email"
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章