This is what I am getting as output when I am trying to commit any file. I tried installing git again and watched some tutorials on youtube to get it started again but it didn't work. Still getting the same error:
error: cannot spawn C:\Program Files (x86)\GnuPG\bin\gpg.exe: No such file or directory error: gpg failed to sign the data fatal: failed to write commit object
If you are using Git bash in Windows to generate the key instead of GnuPG Win, then you need to update the git config to point to the right location of gnupg. Run the following command in git bash with the correct location.
If you don't know the location run
which gpg
in git bash to obtain the location.