Created
August 19, 2018 00:42
-
-
Save seLain/4ec25de9fafebebf449e12547a21fb0b to your computer and use it in GitHub Desktop.
Change author of specific commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/3042437/how-to-change-the-commit-author-for-one-specific-commit | |
git rebase -i <earliercommit> | |
for each commit you want to change: | |
change the text from "pick" to "edit" | |
git commit --amend --author="Author Name <[email protected]>" | |
git rebase --continue | |
git rebase --continue | |
done | |
alternatively, doing amend without open editor: | |
git rebase -i <earliercommit> | |
for each commit you want to change: | |
change the text from "pick" to "edit" | |
git commit --amend --reset-author --no-edit --author="Author Name <[email protected]>" | |
git rebase --continue | |
git rebase --continue | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment