Gpg failed to sign the data after git commit -m 'sample text'

I want to push my changes to GitHub in Git command, integrated terminal in VSC, and my profile is Bash, customized in ZSH. I’m deploying to Netlify through continuous deployment from Github.

Every time I do "git commit -m "sample text’, I get error:

husky > pre-commit (node v14.17.5)
⚠ Some of your tasks use `git add` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.

ℹ No staged files match any configured task.
error: gpg failed to sign the data
fatal: failed to write commit object

We think it is an authentication issue, related to gpg key. We’re able to run gpg2, but not able to sign in with key. We’re trying to set the program to gpg2, and we have upgraded to gpg2, but it says it is already installed gpg. How to check what is gpg key?

We are not sure where to look/what to do now.

Previously I had problems with visibility of my contributions to Gihub, so I have gained Netlify permission to access my repository code. Netlify does this by installing the Netlify GitHub App on my Github account. Everything worked perfect, until I have updated my Macbook Air from Mojave to Big Sur v11. In the same time I had to update my terminal, so I screwed Homebrew upgrade. Yet, my profile is just Bash. Not sure about the last one, sorry! Not least, but last, Netlify just announced Netlify API Authentication beta version to enable in my settings. I haven’t enabled it yet, but I’m not sure if these are the source of my issue.

After reading this article, I have decided to throw my question here Telling Git about your signing key - GitHub Docs

Hi

Your post is a little bit confusing… VCS = Visual Studio Code ? right ?

…Profile is bash… - bash is a shell not a profile (what do you mean by profile ?)

…customized by ZSH… - zsh is a different shell (it is not a bash shell). What do you mean customized ? Like color and fonts ?

…I have gained Netlify permission to access my repository code… ← what the heck is this mean ? Where your code hosted ? Why do you working thought Netlify why not directly with Guthub ?

…I had to update my terminal… ← what does it mean technically ? You updated Visual Studio Code ? bash shell ? ZSH shell ? What do you mean by saying ‘terminal’ ?

…announced Netlify API Authentication beta version… ← what Netlify has to do with Github ? Not familiar with this service…

To test GPG signatures and whole process you could follow official tutorial here: GPG Book

Your post is a little bit confusing… VCS = Visual Studio Code ? right ? YES

…Profile is bash… - bash is a shell not a profile (what do you mean by profile ?) JUST BASH. I CONFUSED COMMAND `BASH/PROFILE’ COMMAND. I HAVE ADJUSTED IT IN MY QUESTION

…customized by ZSH… - zsh is a different shell (it is not a bash shell). What do you mean customized ? Like color and fonts ? I MEAN CONFIGURED IN ZSH. I HAVE ADJUSTED IT IN MY QUESTION

…I have gained Netlify permission to access my repository code… ← what the heck is this mean ? Where your code hosted ? Why do you working thought Netlify why not directly with Guthub ? I CAN’T DEPLOY MY PRODUCTION SITE WITH MODERN TOOLING ON GITHUB, BUT I DO CAN DO IT ON NETLIFY. PLEASE, READ THIS EXPLANATION GitHub Pages vs. Netlify | A Comparative Breakdown

…I had to update my terminal… ← what does it mean technically ? You updated Visual Studio Code ? I WAS ASKED TO UPDATE VSC TO A NEWER VERSION, IT MEANS THAT SOME FUNCTIONALITIES OF THIS EDITOR ARE UPDATED. I HAVE ADJUSTED IT IN MY QUESTION
bash shell ? ZSH shell ? What do you mean by saying ‘terminal’ ? I HAVE ADJUSTED IT IN MY QUESTION

…announced Netlify API Authentication beta version… ← what Netlify has to do with Github ? Not familiar with this service… READ MORE ABOUT NETLIFY API IN BETA VERSION First Look: Announcing API Authentication on Netlify

I appreciate your response, I also learn more about this issue with you. Are you familiar with GPG familiar issues in GIT and able to help me find out where to look to resolve this issue?

I want to push my changes to GitHub in Git command, integrated terminal in Visual Studio Code (Bash, ZSH) I’m deploying to Netlify through continuous deployment from Github.

Every time I do "git commit -m "sample text’, I get error:

husky > pre-commit (node v14.17.5)
⚠ Some of your tasks use `git add` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.

ℹ No staged files match any configured task.
error: gpg failed to sign the data
fatal: failed to write commit object

We think it is an authentication issue, related to gpg key. We’re able to run gpg2, but not able to sign in with key. We’re trying to set the program to gpg2, and we have upgraded to gpg2, but it says it is already installed gpg. How to check what is gpg key?

We are not sure where to look/what to do now.

Previously I had problems with visibility of my contributions to Gihub, so I have gained Netlify permission to access my repository code. Netlify does this by installing the Netlify GitHub App on my Github account. More info here Repository permissions and linking | Netlify Docs. Everything worked perfect, until I have updated my Macbook Air from Mojave to Big Sur v11. In the same time I had to update my terminal, so I screwed Homebrew upgrade. Yet, my is just Bash. Not sure about the last one, sorry! Not least, but last, Netlify just announced Netlify API Authentication beta version to enable in my settings. I haven’t enabled it yet, but I’m not sure if these are the source of my issue.

After reading this article, I have decided to throw my question here Telling Git about your signing key - GitHub Docs

Listen…

About this sentence - this is backwards. You put your code to Github and they deploy to Netlify or whatever service. Do you have a direct link to your Github repo ?? https://github.com/.../… ??? Paste link here.

Github usually:

  1. Open bash shell (just one - this is not a mix, this is not 2 shells together, just 1 and only 1 shell -OR bash OR zsh - understood ?)
  2. got clone your-link-to-github-repo
  3. Change code in Visual Studio Code editor (this is not terminal as you say - this is code editor, just stop saying terminal)
  4. git push (from bash shell)

that’s it. This is what Github provide at very basic level. OK ??

What you have is pre-commit hook: Git - Git Hooksread it twice and may be more until you understand

Then when you completely understand what is this pre-commit hook go to this service of yours Netlify and read read read read how they work. OK ? Read more, read forum questions, read a lot. It seems that you are not receiving this error from Gtihub itself OK ? This is your favorite service Netlify doing it, GPG signing fails because there’s nothing to sign OK ?

Stop asking the same question again and again… Did you do any research ? Any progress in this issue ? What are you doin there ? Sitting with legs crossed and waiting that someone will answer the question ? Did you changed GPG key ? Do you know how ? Does it work now ? Did you try to work with Github directly ? Does it work ? What does it mean: …so I screwed Homebrew upgrade. Yet, my is just Bash… ? What the hell mean: it is my bash ??? bash what ? And what now - you have half installed OS ?

Sorry - I personally can not help you any more. I have a tons of things to do and no - I am not going to read your links about Netlify - I don’t care enough to read them… Sorry