How to change the author and committer name and e-mail of multiple commits in Git?

問題:

I was writing a simple script in the school computer, and committing the changes to Git (in a repo that was in my pendrive, cloned from my computer at home).我正在學校的計算機上編寫一個簡單的腳本,並將更改提交到 Git(在我的 Pendrive 中的一個存儲庫中,從我家裏的計算機克隆)。 After several commits I realized I was committing stuff as the root user.幾次提交後,我意識到我是以 root 用戶身份提交的東西。

Is there any way to change the author of these commits to my name?有什麼方法可以將這些提交的作者更改爲我的名字嗎?


解決方案:

參考一: https://en.stackoom.com/question/399Y參考二: https://stackoom.com/question/399Y
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章