問題:
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?有什麼方法可以將這些提交的作者更改爲我的名字嗎?