設置 Git 用戶名/郵箱
-
打開 Git Bash。
-
設置 Git 用戶名/郵箱:
$ git config --global user.name "Mona Lisa"
$ git config --global user.email "[email protected]"
-
確認您正確設置了 Git 用戶名/郵箱:
$ git config --global user.name > Mona Lisa $ git config --global user.email [email protected]
參考地址:
https://help.github.com/cn/github/using-git/setting-your-username-in-git