Skip to content

Instantly share code, notes, and snippets.

@qdequele
Created February 24, 2018 10:33

Revisions

  1. 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" = "your@email.com" ]
    then
    git commit-tree -S "$@";
    fi
    ' -- --all

    git push origin master --force