Skip to content

Instantly share code, notes, and snippets.

@kussberg
Created October 4, 2021 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kussberg/8fc6238b51e915ffa35aabc266c150a9 to your computer and use it in GitHub Desktop.
Save kussberg/8fc6238b51e915ffa35aabc266c150a9 to your computer and use it in GitHub Desktop.
Resign GPG previous commits
// That will override your previous commits with signed commits
git rebase --exec 'git commit --amend --no-edit -n -S' -i <COMMIT_ID>
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment