jesseduffield / jesseduffield/lazygit

Feature Request: Stash and Pop

Open
#1,334 0 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.**
When I'm using gitflow and I need the create a feature while having uncommited/unstashed changes, I'm not allowed. When I hit `i`, and try to create a feature I have to cancel, then stash my changes, create the feature and finally pop the stash.

**Describe the solution you'd like**
When I create a feature by using the `i` shortcut, it would be useful to automatically:
- Stash changes using the same name as the branch to be created.
- Create/checkout said branch
- Pop stash

This will allow me to simply hit `i` and create my feature without worrying about unstashed changes.

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.