This script automatically re signs all commits on the current branch using your configured GPG key. It is useful when a pull request contains unverified commits and you want to replace them with verified, GPG signed commits.
The script:
- Detects the merge base with the target branch (default:
main). - Creates a backup branch before rewriting anything.
- Re signs every commit after that merge base.
- Force pushes the rewritten history to update the pull request.