Skip to content

Instantly share code, notes, and snippets.

@jebrial
Created December 4, 2019 23:06
Show Gist options
  • Save jebrial/a0c85ecc8db24ebed93b9f9d7d4e69c1 to your computer and use it in GitHub Desktop.
Save jebrial/a0c85ecc8db24ebed93b9f9d7d4e69c1 to your computer and use it in GitHub Desktop.
Overwrite commit author for commits of a specific branch starting from a specific commit
git rebase --onto COMMIT_HASH_BEFORE_FIRST_TO_OVERWRITE --exec "git commit --amend --author=\"Author Name <user@email.com>\"" COMMIT_HASH_BEFORE_FIRST_TO_OVERWRITE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment