I changed my global Git configuration to sign all commits. I also use gpg-agent so that I don\'t have to type my password every time.
Now every time I make a new com
This is more a gpg configuration issue than a git one.
Since you are using an agent, you could as a workaround add no-tty to your gpg.conf.
no-tty
gpg.conf
echo 'no-tty' >> ~/.gnupg/gpg.conf
(this seems working even better than the --batch option)