If your git process gets stuck during the gpg signing phase, you can restart gpg by running gpgconf --kill gpg-agent
Thanks