jesseduffield / jesseduffield/lazygit

Create new local branch from remote but do not checkout

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

Description

### Is your feature request related to a problem? Please describe.
I've always want to `favorite` some remote branch, watch it's update and cherry-pick from it. So I create a new local branch from it.

However, when I search it in the `remote` tab, and select `new branch`, I just want to create a new branch without checkout it. Currently the `new branch` option would always try to check out.

### Describe the solution you'd like
Change `new branch` to a menu, `new branch and checkout`, `new branch without checkout`.

### Describe alternatives you've considered
Add `new branch without checkout` option besides `new branch`.

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.