設定 git 顯示的使用者名稱和電子信箱

查看:

查看git使用者名稱:
git config --global user.name
查看git電子信箱:
git config --global user.email

設定:

設定git使用者名稱:
git config --global user.name "Ruyut"
設定git電子信箱:
git config --global user.email "a@ruyut.com"
檢查:


查看所有設定

所有的內容都會儲存在 config 裡面,如果要查看或編輯的話可以使用下列指令:
git config --global --edit

留言