How do I change the author of a commit in GIT from specific revision

This question already has an answer here:

  • Change the author and committer name and e-mail of multiple commits in Git 29 answers

  • If it's the last commit only use

    git commit --amend --reset-author
    

    Or if you want to change it to something not in your .gitconfig

    git commit --amend --author="Name <email@example.com>"
    

    If it's the last couple of commits you can combine this with a git-rebase

    NOTE It's recommended that you don't use this if you already have pushed your work, it will require a force push and will conflict with all the people who are working with you on the project.

    链接地址: http://www.djcxy.com/p/28500.html

    上一篇: 修改旧的Git提交的用户名

    下一篇: 如何从特定版本更改GIT中的提交作者