Created
November 9, 2021 10:55
-
-
Save skounis/19c963ceb52abb76b051997284b07a9b to your computer and use it in GitHub Desktop.
Retroactively Sign Git Commits
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
# First read | |
# https://webdevstudios.com/2020/05/26/retroactively-sign-git-commits/ | |
# | |
# 1. Change into the working branch the commits were made | |
# 2. Rebase and go back `~xx` commits. For example last two | |
git rebase -i HEAD~2 | |
# 3. Replace "pick" with "rework" in the next prompt and save. | |
# 4. Push | |
git push --force-with-lease |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment