title: gpg failed to sign the data. Failed to write commit object
body: <p>I wrongly did <code>sudo install gpg</code> due to passphrase error. Now I am not able to commit anything through intelliJ. 
  I am getting below error:</p>
  
  <pre><code>gpg: skipped "10XXXXXXXXX3892": secret key not available gpg: signing failed: secret key not available error: gpg failed to sign the data fatal: failed to write commit object 
  gpg: skipped "MyUpdates": secret key not available gpg: signing failed: secret key not available error: gpg failed to sign the data fatal: failed to write commit object
  </code></pre>
  
  <p>Here two secret keys are shown "10XXXXXXXXX3892" and "MyUpdates". 
  Is there any way i can get rid of gpg error. How can I uninstall gpg?</p>