gnupg - Git signed commits - How to suppress "You need a passphrase to unlock the secret key..." -
i changed global git configuration sign commits. use gpg-agent don't have type password every time.
now every time make new commit see following 5 lines printed console:
[blank line] need passphrase unlock secret key user: "john doe <mail@gmail.com>" 2048-bit rsa key, id abcdef12, created 2016-01-01 [blank line]
even worse, when simple stash, message printed twice, needlessly filling console (i assume 1 each of 2 commit objects created).
is there way suppress output?
this more gpg configuration issue git one.
since using agent, workaround add no-tty
gpg.conf
.
echo 'no-tty' >> ~/.gnupg/gpg.conf
(this seems working better --batch
option)
Comments
Post a Comment