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

后端 未结 30 3034
野性不改
野性不改 2020-11-21 04:50

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). After several c

30条回答
  •  伪装坚强ぢ
    2020-11-21 05:06

    Using interactive rebase, you can place an amend command after each commit you want to alter. For instance:

    pick a07cb86 Project tile template with full details and styling
    x git commit --amend --reset-author -Chead
    

提交回复
热议问题