Skip to content

Instantly share code, notes, and snippets.

@steveAllen0112
Last active April 30, 2019 06:04
Show Gist options
  • Save steveAllen0112/ef59822728841219addd1fee9c2bfb39 to your computer and use it in GitHub Desktop.
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))
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