有的時候我們有兩個甚至多個git賬號(公司的git賬號和自己的github),為了不混淆提交,我們需要在提交之前查看自己的git賬號必要時進行切換。
查看當前git用戶名: git config user.name
查看當前git郵箱: git config user.email
切換git用戶名: git config --global user.name "user name"
切換git郵箱: git config --global user.email "e-mail"
有的時候我們有兩個甚至多個git賬號(公司的git賬號和自己的github),為了不混淆提交,我們需要在提交之前查看自己的git賬號必要時進行切換。
查看當前git用戶名: git config user.name
查看當前git郵箱: git config user.email
切換git用戶名: git config --global user.name "user name"
切換git郵箱: git config --global user.email "e-mail"
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。