Problems with git commit autosigning on mac

Photo by Yancy Min / Unsplash

i have the Problem, that i get a error message sometimes, since i’ve enabled git gpgsign on mac.

Error message

sometime the gpg-agent stucks, so i get the error message:

❯ git commit -m 'Test'
error: gpg failed to sign the data
fatal: failed to write commit object

Quik fix

to quik fix this issue you can kill the gpg-agent.

pkill -9 gpg-agent && export GPG_TTY=$(tty)

General fix

add the fallowing lines to your bashrc.

GPG_TTY=$(tty)
export GPG_TTY

don’t trust me…

I do not know what I am doing, so I cannot take responsibility for the accuracy of the information provided here

--

--

--

Passionate DevOps engineer with a preference for Infrastructure as Code, Automation, Kubernetes, Go, Azure- and HetznerCloud.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Install EteSync 2.0 (Etebase) Server on Ubuntu

Synchronous vs Asynchronous vs Concurrent vs Parallel

kalithaz customer care number9883997714//9883997714kalithaz customer care…

If you haven’t gotten this must-read account of the September 11th attacks, you need to put The…

Why Did I Decide To Study Software Engineering?

Bloom Filter : A Probabilistic Data Structure

Calculator of Tomorrow: Using Arbitrary Precision

Easy use of Realm in Swift.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
0hlov3

0hlov3

Passionate DevOps engineer with a preference for Infrastructure as Code, Automation, Kubernetes, Go, Azure- and HetznerCloud.

More from Medium

Getting started with Visual Studio Code extension development

How to move the cursor word by word in the OS X

Developing in a Linux Container on Windows 11 (without Docker Desktop)

Breaking out of virtual chains with Slay