jesseduffield / jesseduffield/lazygit

Keybinding validation error on amend even though the keybind doesn't exist

Open
#5,697 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

### Describe the bug

I was aware of the new breaking change of keybinding, lazygit first refused to launch saying the `` is invalid so I changed it `` and it did enter.

```
$ lazygit

2026/06/12 21:03:38 The config at `/home/sharpchen/.config/lazygit/config.yml` has a validation error.
Unrecognized key '' for keybinding 'Commits.ResetCherryPick[0]'. For permitted values see https://github.com/jesseduffield/lazygit/blob/master/docs/keybindings/Custom_Keybindings.md
```

And then I found it still show the same error on amend, this error still persist even after I comment out the keybind in my config.

```yml
keybinding:
commits:
# resetCherryPick:
```

### To Reproduce
Steps to reproduce the behavior:

1. add some change to a repo, stage them
2. amend to certain commit
3. error pops

It will create a fixup commit

### Expected behavior

No error, amend as expected

### Screenshots

Image

### Version info:

```
commit=, build date=, build source=nix, version=0.62.2, os=linux, arch=amd64, git version=2.54.0
```

### Terminal info:

Wezterm 20260117-154428-05343b38

### Additional context
Add any other context about the problem here.

> [!NOTE]
> Please try updating to the latest version or [manually building](https://github.com/jesseduffield/lazygit/#manual) the latest `master` to see if the issue still occurs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.