2017-05-03 44 views
3

我通常在github中使用gitbash提交。github提交顯示全名而不是用戶名

當我提交它顯示我的用戶名。

教授要求我提交我的項目,顯示了我的全名在提交細節

我試着通過在windows中編輯.gitconfig文件來解決一些問題。

我也試着從堆棧溢出一些解決方案,如下列:

git config --global user.name "name" 
git config --global user.email "email" 

git config user.name "name" 
git config user.email "email" 

但是,這並不爲我工作。

+0

的[更改Git的用戶名]可能的複製(http://stackoverflow.com/questions/35063493/changing-the-git-username) – vv01f

+0

我嘗試了一些解決方案,沒有按因爲這個原因,我發佈了這個問題 –

+0

如果你把你的全名命名爲「name」字段,那麼全名將顯示在提交細節中。 –

回答

相關問題