2016-12-05 64 views
0

我正在與github上的公司用戶合作,但我也有個人帳戶。我與我的公司用戶連接到github,克隆了它的回購工作,並稍後推送提交,但提交用我的個人帳戶保存,而不是公司用戶名。Github回購保存我與其他用戶的提交

當我連接到github時,控制檯請求我的電子郵件和密碼與我的公司證書連接。

我試圖設置global.email和用戶沒有結果。

我該如何更改用戶?

+0

您可能必須返回並更改您已提交的提交的作者。請參閱http://stackoverflow.com/questions/750172/change-the-author-and-committer-name-and-e-mail-of-multiple-commits-in-git – whaleberg

回答

0

使用這些命令註銷,

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

然後,登錄使用

git config --global user.name "YOUR NAME" 
git config --global user.email "YOUR EMAIL ADDRESS" 

然後authenticate with GitHub.


當做到這一點,如通過在註釋中提到的@whaleberg,你會想要change the author of the old commits.

如果您按照這些步驟操作仍然存在問題,請告訴我,我會盡力幫助。

相關問題