Git does not ask me for gpg passphrase and fails my commit : <p>When I do <code>git commit -a -S -m "Commit Message"</code>, I get this error:</p>

<pre><code>You need a passphrase to unlock the secret key for
user: "Username (Gpg Key) &lt;email-id&gt;"
2048-bit RSA key, ID 2487BE7C, created 2016-10-03

error: gpg failed to sign the data
fatal: failed to write commit object
</code></pre>

<p>But, it doesn't even ask/prompts for my passphrase when I commit. So, how and where do I enter my passphrase while using gpg's <code>-S</code> flag?</p>
