Last active
April 30, 2019 06:04
-
-
Save steveAllen0112/ef59822728841219addd1fee9c2bfb39 to your computer and use it in GitHub Desktop.
How to re-sign an entire branch from a certain commit forward (From [this comment](https://superuser.com/a/1368424))
This file contains hidden or 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
git filter-branch --commit-filter 'git commit-tree -S "$@";' <COMMIT>..HEAD | |
Then when you're done: | |
git push -f | |
NB: This DOES re-trigger any project management automation you have based on the commit messages you're rewriting. | |
(e.g. "Closes #14" or "Fixes #509") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment