问题:
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?有什么方法可以将这些提交的作者更改为我的名字吗?