I accidentally made a few (about 20) commits to my local, unpushed Git repository under a different GPG key, email, name, etc. How do I resign/reauthor all of the commits under another configuration?
An answer that reauthors all commits would be fine because all the commits are authored by me, but a solution that can target a certain author would be good too.
Bash scripts would work, but I'm on Windows currently. I'd have to open WSL and run the bash script from there. An answer in PowerShell would be appreciated as it's cross-platform. If it can be done in a single Git command that'd also be excellent. Thanks.