我使用的Git在Windows上,並設置用戶名和電子郵件:不正確的Git用戶名和電子郵件在Windows
git config --global user.name "hydRAnger"
git config --global user.email "[email protected]"
當我使用:
git config --global --list
我得到的輸出:
user.name=hydRAnger
[email protected]
但是,當我使用git log
作者信息應該是:
Author: hydRAnger
<[email protected]>
但事實上我得到的輸出:
Author: unknown
<[email protected](none)>
我不知道爲什麼作者信息incorect。
非常感謝。這個答案的工作原理: http://stackoverflow.com/a/750191/1054306 – hydRAnger 2012-01-29 14:53:34
另請參見[有沒有一種方法來覆蓋git作者的顯示名稱](http://stackoverflow.com/q/8878615/11343)for另一種方法來做到這一點 – CharlesB 2012-01-30 13:02:59