when I commit in the atom with git, the issue as follow:

but I have create the gpg in my pc and I can do the commit with git bash.
Expected behavior:
[What did you expect to happen?]
Actual behavior:
[What actually happened instead?]
Reproduces how often:
[What percentage of the time does this happen?]
You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.
Please include any additional information, configuration or data that might be necessary to reproduce the issue. Screenshots, if appropriate, are helpful as well.
If your issue involves a repository, and that repository is public, please include a link to it.
Please also provide version and OS information:
You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.
It would also be helpful to know what version of gpg you're using to commit. You can discover this by:
git config gpg.program within the repository you're unable to commit to. This will show the name of the gpg binary that git will use to sign commits. If it produces no output, this defaults to gpg.--version.this is the version information for my PC, I have another doubt, when I commit at command line, I need give a passphase, but how can I give it in atom?
位 atom --version
Atom : 1.21.1
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
位 apm --version
apm 1.18.5
npm 3.10.10
node 6.9.5 ia32
python 2.7.10
git 2.10.1.windows.1
visual studio
位 gpg --version
gpg (GnuPG) 2.0.30 (Gpg4win 2.3.4)
libgcrypt 1.7.8
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: C:/Users/JINGR1/AppData/Roaming/gnupg
Supported algorithms:
Pubkey: RSA, RSA, RSA, ELG, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
For what its worth, I just hit this as well. Atom does ask me for my password correctly, but then I receive the same error message as above.
Here is my info if it helps with the debug:
OS: macOS Sierra 10.12.6
atom --version
Atom : 1.21.1
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
apm --version
apm 1.18.5
npm 3.10.10
node 6.9.5 x64
python 2.7.10
git 2.14.2
gpg --version
gpg (GnuPG) 2.2.1
libgcrypt 1.8.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /Users/rsullivan/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
I solved this by adding gpg.program to the .gitconfig file, as was mentioned above. To do so, run the following command. The path to gpg.exe may vary depending on your installation.
git config --global gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"
I had installed GnuPG from here using the Gpg4win binary. Make sure gpg is accessible in the path.
Most helpful comment
I solved this by adding gpg.program to the .gitconfig file, as was mentioned above. To do so, run the following command. The path to gpg.exe may vary depending on your installation.
I had installed GnuPG from here using the Gpg4win binary. Make sure gpg is accessible in the path.