Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

bad numeric config value 'null' for 'commit.gpgsign': invalid unit

agung kurniawan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 22, 2021

I have Eror from this commit ? have any idea solution?kw.PNG

 

4 answers

3 votes
Shamiul Hasan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2021

If you are on Linux, just delete the '~/.gitconfig' or '/home/$USER/.gitconfig' file. This will take git to an unconfigured state. The problem was that somehow the configuration file got changed by some unwanted operation and the value of `gpgsign` was set to `null`. Deleting the file or deleting the line containing `gpgsign` should solve the problem.

0 votes
AlpízarGregory
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 19, 2021

Edit: That problem is due to you have "git gpg signing" turned on, but no GnuPG installed. It's easy to disable it permanently by modyfing your .gitconfig, just type this command:

git config --global commit.gpgsign false 
0 votes
yehanny olivares
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2021

Ok I managed to fix the issue following this post https://stackoverflow.com/questions/39494631/gpg-failed-to-sign-the-data-fatal-failed-to-write-commit-object-git-2-10-0 and Shayan Amani answer. Basically we need to update our gpgsign and sync the email with it inside GitHub. 

agung kurniawan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 1, 2021

some eror, any idea please?

0 votes
Gonchik Tsymzhitov
Community Champion
April 25, 2021

Could you try the next command?


git -c commit.gpgsign=false commit

https://bbs.archlinux.org/viewtopic.php?id=264619

yehanny olivares
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2021

Hi, it looks like a common issue on GitHub, I'm trying to run a commit but I get same error then I tried your command with no succeed, any other suggestion?

OS: Solus GNU/Linux

GIT version 2.30.2

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events