On Thu, Feb 04, 2021 at 01:53:37PM -0500, Leo Famulari wrote: > The signatures will be lost, but for "wip-" branches the expectation has > always been that history may be rewritten. For me, rebasing is a more > comfortable workflow for this kind of exploratory branch. I recommend > against using merges here.
And by the way, one can re-sign an arbitrary range of commits like this:
$ which git-sign
git-sign () {
case $# in
("0") range=HEAD ;;
("1") range=$1 ;;
(*) echo "too many arguments" >&2
return 1 ;;
esac
git rebase "$range" --exec "git commit --amend --no-edit --gpg-sign" ||
git rebase --abort
}
signature.asc
Description: PGP signature
