Previously I would squash all my commits in a branch by doing the following:-
git rebase -i f41790727e8c136d9987d5099cd01429459d8065
However, if I enable GPG signing on the repository.
Git Config Entry
[commit]
gpgsign = true
Then I get the following error.
gpg: cannot open tty `no tty': No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object
Could not apply f608db8... Testing
I have tried the suggestion in How to retain commit gpg-signature after interactive rebase squashing? but
git rebase -i --gpg-sign=<my-email> f41790727e8c136d9987d5099cd01429459d8065
fails with the same error.
I am really stuck on how I can resolve this. You must be able to rebase with GPG signing.