jesseduffield / jesseduffield/lazygit

With multiple remotes, 'open commit in browser' always open in first remote

Open
#5,260 3 comments 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
As described in title.

### To Reproduce
Steps to reproduce the behavior:

1. Open lazygit in a git directory with multiple remotes configured.
2. Go to 'Remotes' panel, select second remote, then a branch, then a commit.
3. Press 'o' key to open commit in browser.
4. Browser opens the first remote (which may or may not have the selected commit).

### Expected behavior
Browser opens the selected second remote.

### Screenshots
--

### Version info:

```sh
> lazygit --version
commit=v0.58.1, build date=2026-01-12T20:22:34Z, build source=binaryRelease, version=0.58.1, os=linux, arch=amd64, git version=2.52.0
```

### Terminal info:
foot

### Additional context
--

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.