---
title: Error with signed commits
aliases: /posts/2020-11-14-error-with-signed-commits
categories: [computerstuff]
tags: [git]
date: 2020-11-14T23:22:42+01:00
---

For some reason my git commits failed when I re-enabled gpg signing. This is how
I finally fixed that problem.

<!--more-->

##### Add to `~/.gnupg/gpg.conf`

```plain
use-agent
pinentry-mode loopback
```

##### And add to `~/.gnupg/gpg-agent.conf`

```plain
allow-loopback-pinentry
```

##### Restart the agent

```console
$ echo RELOADAGENT | gpg-connect-agent
```

This information was found on
[d.sb/2016/11/gpg-inappropriate-ioctl-for-device-errors][1].

[1]: https://d.sb/2016/11/gpg-inappropriate-ioctl-for-device-errors