Git Configuration

Problems with git commit autosigning on mac

If you’ve enabled GPG signing for Git commits on macOS, you might occasionally encounter this frustrating error message: ❯ git commit -m 'Test' error: gpg failed to sign the data fatal: failed to write commit object This happens when the GPG agent gets stuck or isn’t properly configured. Here’s how to fix it. Quik fix If you need a quick solution, you can restart the GPG agent using the following command: pkill -9 gpg-agent && export GPG_TTY=$(tty) This will...