On Thu, Aug 04, 2016 at 12:37:07PM -0400, Leo Famulari wrote: > And if you don't want to sign every commit as you work (it can be > tedious if your gpg-agent has a short cache lifetime), you can use > git-rebase to sign a commit range before pushing, as in this shell > script: > > 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 > } > > So, if I have 4 commits to push, I do `git-sign HEAD~4`.
So it is not enough to just do a git rebase -S ? I thought this would re-sign all my commits on top of the base of the rebase. If not, this could explain my earlier mistake... Andreas