jesseduffield / jesseduffield/lazygit

Add Config to make stashing to include untracked files automatically

Open
#3,245 3 comments 14 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 default git stashing behavior doesn't include untracked files in the stash. I am annoyed by this most of the time. I create stash then undo it and then create a new one and include the stash with untracked files.

My proposed solution is to make a lazygit config when enabled the default stashing uses `git stash -u` rather than `git stash` essentially making stashing untracked files the default behavior.

I tried to make this behavior with `.gitconfig` but there is no git config option.

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.