1秒登錄
用戶名和郵箱地址的作用
用戶名和郵箱地址是本地git客戶端的一個變量,不隨git庫而改變。
每次commit都會用用戶名和郵箱紀錄。
github的contributions統計就是按郵箱來統計的。
查看用戶名和郵箱地址:
$ git config user.name $ git config user.email
修改用戶名和郵箱地址:
$ git config --global user.name "username" $ git config --global user.email "email"
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。