Skip to content

Instantly share code, notes, and snippets.

@dendisuhubdy
Forked from qdequele/gpg_resign.sh
Created February 8, 2022 10:01
Show Gist options
  • Save dendisuhubdy/82a21a665ea1d1cc88b97993159e5250 to your computer and use it in GitHub Desktop.
Save dendisuhubdy/82a21a665ea1d1cc88b97993159e5250 to your computer and use it in GitHub Desktop.

Revisions

  1. @qdequele qdequele created this gist Feb 24, 2018.
    14 changes: 14 additions & 0 deletions gpg_resign.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/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