on-internet
← Community

Resign previous Git commits with a new GPG key

Stack Overflow ·

I am trying to transition to a new GPG key. I would like to re-sign all of my previous commits in a Git repository (that have a valid signature with my formerly used key) with the new GPG key. In other words, how can I automatically resign (with my new key) all of the commits that I signed with my previous key? If you need key fingerprints to use in your example, please use 0000000000000000000000000000000000000000 as my old GPG key fingerprint and 1111111111111111111111111111111111111111 as my new key fingerprint.

Comments

Sign in or sign up to comment and upvote.

No comments yet.