-
-
Save dendisuhubdy/82a21a665ea1d1cc88b97993159e5250 to your computer and use it in GitHub Desktop.
Resign all my old commits with GPG key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd $1 | |
git filter-branch --commit-filter ' | |
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ] | |
then | |
git commit-tree -S "$@"; | |
fi | |
' -- --all | |
git push origin master --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment