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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章