通常綠點不出現是當初郵箱上傳錯了的緣故
修改方法以下:
打開git bash界面
1:git
輸入
$ git config --list bash
能夠查看配置的一些東西。能夠看到user.name 和user.email 分別是什麼。。
若是你沒有初始化過。那麼直接:
$ git config --global user.name "輸入你的用戶名"
$ git config --global user.email "輸入你的郵箱"ide
這樣就能夠初始化了。code
2:regexp
若是你已經初始化過了,可是不當心把郵箱和用戶名輸錯了,那麼就要修改了。
我看到網上有人說繼續$ git config --global user.name "輸入你的用戶名"或者 $ git config --global user.email "輸入你的郵箱" 來修改郵箱和密碼。我嘗試了一下,是不行的(至少在window10的環境下)會給出這樣的錯誤:
warning: user.name has multiple values
error: cannot overwrite multiple values with a single value
Use a regexp, --add or --replace-all to change user.name.ip
這邊給出了--repalce-all 這個東西。it
而後我嘗試着用class
$ git config --global --replace-all user.email "輸入你的郵箱" $ git config --global --replace-all user.name "輸入你的用戶名"
而後再查看下
$ git config --list
發現修改爲功了。email