Skip to content

Feat multiple stash - #20845

Closed
Zetjen wants to merge 8 commits into
desktop:developmentfrom
Zetjen:feat-multiple-stash
Closed

Zetjen wants to merge 8 commits into
desktop:developmentfrom
Zetjen:feat-multiple-stash

Conversation

@Zetjen

@Zetjen Zetjen commented Aug 3, 2025 •

Copy link
Copy Markdown

Closes #12699

Description

This PR adds the ability to manage multiple stashes directly from the UI.
It implements the same actions that were previously available, but now they can be applied to a specific stash from the list of all stashes for the current branch.

Screenshots

image image

Release notes

Notes: Added ability to manage multiple stashes from the UI for the current branch.

Zetjen added 8 commits August 3, 2025 19:50
Upgraded the getStashes method to get 2 arrays.
- Github Desktop stashes
- Other stashes
Now we get all stashes together, but we mark them if they are created by Github Desktop using the isGitHubDesktop
Allow to list all stashes and prepare to use a selected stash for UI
@github-actions github-actions Bot added external Pull request originating outside of the Desktop core team triage For incoming issues labels Aug 3, 2025
@w43322

w43322 commented Aug 7, 2025

Copy link
Copy Markdown

dis da bomb 💣🚀🚀

@Zetjen
Zetjen marked this pull request as ready for review August 15, 2025 10:19
@Zetjen

Zetjen commented Aug 15, 2025

Copy link
Copy Markdown
Author

Hi @tidy-dev, this is my first PR for this repo. Please reach me out if you need anything from my side.
This is a nice feature and I have been testing it for one week and seems to be working fine.

Wish you a nice weekend ;)

@samnoyes

Copy link
Copy Markdown

should literally just fork this repo with just this feature added lol. The only thing I'm missing from the GUI

@samnoyes

Copy link
Copy Markdown

still doesnt let me create a second stash from the UI :/ when i click stash it prompts me that it will "overwrite my current stash"

@Zetjen

Zetjen commented Aug 15, 2025

Copy link
Copy Markdown
Author

@samnoyes I'll take a look tomorrow, thanks for the feedback

@Zetjen
Zetjen marked this pull request as draft August 15, 2025 17:52
@Fewnity

Fewnity commented Aug 20, 2025

Copy link
Copy Markdown

I really need this!

@tidy-dev

Copy link
Copy Markdown
Contributor

@Zetjen Thank you for wanting to contribute and for your hard work on this feature. Sorry for taking so long to reply.

The GitHub Desktop team has discussed this feature before for other external PR's and unfortunately, we have decided to close it. Stashing is a core feature, and the current implementation was introduced after thorough user research and design that addressed the most common use cases for stashing. We want to reserve the completion of another iteration for our internal team so that we can conduct a similar in-depth review of what the next iteration of stashing should look like. This will allow us to consider current user requests, such as single-file stashing, multiple stashes, and visibility of stashes made outside of GitHub Desktop. At the same time, we aim to ensure that the current implementation, which works well for a large percentage of our users, is not disrupted.

@tidy-dev tidy-dev closed this Aug 26, 2025
@w43322

w43322 commented Aug 26, 2025

Copy link
Copy Markdown

@Zetjen Thank you for wanting to contribute and for your hard work on this feature. Sorry for taking so long to reply.

The GitHub Desktop team has discussed this feature before for other external PR's and unfortunately, we have decided to close it. Stashing is a core feature, and the current implementation was introduced after thorough user research and design that addressed the most common use cases for stashing. We want to reserve the completion of another iteration for our internal team so that we can conduct a similar in-depth review of what the next iteration of stashing should look like. This will allow us to consider current user requests, such as single-file stashing, multiple stashes, and visibility of stashes made outside of GitHub Desktop. At the same time, we aim to ensure that the current implementation, which works well for a large percentage of our users, is not disrupted.

that's a real bummer; it's the only reason i revert to cli from time to time

@w43322

w43322 commented Aug 26, 2025

Copy link
Copy Markdown

@Zetjen Thank you for wanting to contribute and for your hard work on this feature. Sorry for taking so long to reply.
The GitHub Desktop team has discussed this feature before for other external PR's and unfortunately, we have decided to close it. Stashing is a core feature, and the current implementation was introduced after thorough user research and design that addressed the most common use cases for stashing. We want to reserve the completion of another iteration for our internal team so that we can conduct a similar in-depth review of what the next iteration of stashing should look like. This will allow us to consider current user requests, such as single-file stashing, multiple stashes, and visibility of stashes made outside of GitHub Desktop. At the same time, we aim to ensure that the current implementation, which works well for a large percentage of our users, is not disrupted.

that's a real bummer; it's the only reason i revert to cli from time to time

u could just make it opt-in in the settings

@NagyGeri69

Copy link
Copy Markdown

@Zetjen Thank you for wanting to contribute and for your hard work on this feature. Sorry for taking so long to reply.

The GitHub Desktop team has discussed this feature before for other external PR's and unfortunately, we have decided to close it. Stashing is a core feature, and the current implementation was introduced after thorough user research and design that addressed the most common use cases for stashing. We want to reserve the completion of another iteration for our internal team so that we can conduct a similar in-depth review of what the next iteration of stashing should look like. This will allow us to consider current user requests, such as single-file stashing, multiple stashes, and visibility of stashes made outside of GitHub Desktop. At the same time, we aim to ensure that the current implementation, which works well for a large percentage of our users, is not disrupted.

The community has been asking for this feature since atlest 2022, with a lot of interest and upvotes. I don't know what kind of user research was done, but this would help a lot of people, even if it's just an optional setting you could opt in to, as mentioned before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external Pull request originating outside of the Desktop core team triage For incoming issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Github Desktop does not seem to support multiple stashes.

6 participants