jesseduffield / jesseduffield/lazygit

Allow opening a bare repo without any worktrees defined.

Open
#4,330 3 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

Right now if you use bare repos with git worktree, lazygit is a bit more annoying to use that it should be.
If I clone down a bare repo and open lazygit in it, it fails with

`Error: must be run inside a git repository`

What would be ideal would be for lazygit to recognize it's a bare repo and go ahead and open.

Then you could use the `w` command to create new worktrees from the branches.

This would lead to a much smoother workflow for those using bare repos with worktrees.

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.