Skip to content

Github Desktop does not seem to support multiple stashes. #12699

Open

Description

@Echo343

Describe the feature or problem you’d like to solve

Github Desktop only supports a single stash per branch.

Proposed solution

The UI can be changed to show the whole stack of stashes.

Activity

  1. ImRodry commented on Mar 25, 2022

    @ImRodry

    I believe being able to name our stashes and list them would be highly appreciated, is there any ETA for when this will be available?

  2. steveward commented on Jul 1, 2022

    @steveward
    Contributor

    Requested in #14896.

  3. TomEstelrich commented on Nov 14, 2022

    @TomEstelrich

    +1 with moving forward with this feature. I see this issue still opened, is there any update on that?

  4. joriswitteman commented on Nov 28, 2022

    @joriswitteman

    As a workaround until this feature is added:

    You can have a single stash in any amount of branches. Meaning for your stash, you could create a stash/foo-bar branch and stash your changes there. You don't have to push any of the branches to the origin so it won't dirty up your repo on GitHub.

    Retrieving the changes in the stash, to master, could be done by unstashing while switched to the branch, then switching to master and telling the app to bring the changes along to master.

  5. HaloFour commented on Feb 23, 2023

    @HaloFour

    Please consider allowing multiple named stashes. I'm trying to migrate over from SourceTree and this is one limitation that really impacts my muscle memory. Perhaps I'm sloppy with how I use git, but I probably have a dozen incomplete stashes hanging off of the main branch or other local branches at any given time, usually with some variation of a spike that I haven't yet fleshed out enough. There are also well over a thousand remote branches in this repo which makes that dropdown for branch selection really cluttered, even with the search feature, so I would kind of prefer to not have to constantly juggle local branches for each stashed set of code changes, or worry about how old that local branch happens to be when I get back around to working with a particular stash.

  6. eheimburg commented on Apr 14, 2023

    @eheimburg

    I think a named-stash manager GUI would be great. But I would appreciate an interim feature where we could just push another stash on top of the current one (a git stash push) even if there's already a stash on the branch. It could just warn that there's already a stash, and creating a new one will hide it. And have wording like "there are N additional stashes" somewhere. After the latest stash gets popped off, the next one would get shown.

    This would work well for me, and would be a step toward a full-featured stash manager system.

  7. the7threvival commented on Aug 24, 2023

    @the7threvival

    There are more details on the history of stashing in GitHub Desktop in #6107 but it's not clear to me why multiple stashes were never implemented

  8. 0xdevalias commented on Dec 16, 2023

    @0xdevalias

    It's really confusing when I have stashed changes that weren't done by GitHub Desktop (that I can see with git stash list), and yet the UI doesn't show this at all:

    ⇒ git stash list
    stash@{0}: WIP on devalias: abc1234 some stashed message
    

    image

    And that it's only when I stash through GitHub Desktop:

    image

    ⇒ git stash list
    stash@{0}: On devalias: !!GitHub_Desktop<devalias>
    stash@{1}: WIP on devalias: abc1234 some stashed message
    

    That there is then UI shown for it:

    image

    Even if GitHub Desktop doesn't/can't support showing multiple stashes currently, it should at least tell me that there is a stash on this branch, and ideally, the count of stashes.

    I would even be ok with it if GitHub Desktop refused to view/apply stashes not specifically marked with the format On devalias: !!GitHub_Desktop<devalias>, so long as it showed me the counts of existing stashes, and some form of dialog explaining why it can't/won't show me a stash that wasn't created by it.

    Obviously the even better solution here would be for it to have full support for multiple stashes/browsing/applying/etc; but I realise that is a bigger piece of work.

    I would suggest that the UI improvement for showing how many existing stashes/etc should be done as an interim step, even if a larger 'stash browser' feature is planned/will never exist.


    Edit: Opened a separate issue for this bit:

    Somewhat OOS of this issue, but it's also pretty confusing when on one branch I have some files .gitignored, switch to a branch that doesn't have them ignored, then switch back, and get shown this dialog:

    image

    I would assume the correct choice out of those should be 'Bring my changes'; but then when I get back to my branch with the .gitignore, all of these files are suddenly visible in the GitHub Desktop UI, and a bunch of unexpected conflicts/etc.

    I believe this is because when switching the branch like this, GitHub Desktop stages everything; which is kind of unexpected, and definitely not desirable.

    If I then do a git reset on command line, the view in GitHub Desktop looks far more normal/expected; with seemingly the only remaining issues being the files that had previously conflicted (as I now have to remove the conflict syntax), and any actual remaining differences.


    Tangentially related:

  9. ngzaharias commented on May 9, 2024

    @ngzaharias

    Any update when this would be added?

  10. steveward commented on Jun 27, 2024

    @steveward
    Contributor

    Feedback from #18909:

    The feature request:

    I would like to request a feature in GitHub Desktop that supports multiple stashes. This feature would allow users to manage their stashes more efficiently by providing a UI view similar to the one used for browsing commits. Users could easily navigate through their stashes, view the changes in each stash, and recover any stash they choose.

    Proposed solution
    Introduce a new UI component in GitHub Desktop for managing stashes. This component should:

    Allow users to create and manage multiple stashes.
    Provide a list view of all stashes, similar to the commit history view.
    Enable users to select a stash to see the detailed changes it contains.
    Allow users to recover any stash with a single click, restoring the stashed changes to their working directory.
    Benefits to GitHub Desktop and its users:
    Users will find it easier to manage their stashes with a familiar and intuitive UI, similar to the commit history view.
    The ability to view and recover stashes with a single click simplifies the workflow and reduces the chances of losing important work.
    Enhanced Productivity:
    Developers can quickly switch between different stashes, making it easier to experiment with different code changes without losing track of their progress.
    The streamlined stash management process saves time, allowing developers to focus more on coding and less on managing their changes.

  11. added
    not-planned
    on Jul 8, 2024
  12. tidy-dev commented on Aug 20, 2024

    @tidy-dev
    Contributor

    Feedback from: #19134

    GitHub Desktop currently allows only one stash per branch. Creating a new stash overwrites the previous one, limiting flexibility in managing work-in-progress changes.

    Proposed Change

    • Implement support for multiple stashes per branch, similar to Git's native functionality.

    Benefits

    • Improved workflow management
    • Greater flexibility in handling multiple sets of changes
    • Reduced risk of losing work

    Proposed solution

    • Add a "Stash List" view in the GitHub Desktop UI
    • Modify the stash creation process to allow naming/describing each stash
    • Implement stash application, deletion, and management features
      Additional Considerations
    • Sync multi-stash functionality with GitHub.com for consistency across platforms
    • Provide clear documentation on how to use and manage multiple stashes
  13. barrykeenan commented on Dec 5, 2024

    @barrykeenan

    +1 for this much needed feature. Only having 1 stash is very restrictive.

  14. 3 remaining items

  15. ghedwards commented on Jul 7, 2025

    @ghedwards
    Contributor

    Any update on this ? So many other tools have their "Quirks" which make working with Git less trivial, Github desktop is great, but this puts most dev's at risk of devs losing work when switching between branches / items of work.

  16. Zetjen commented on Aug 3, 2025

    @Zetjen

    #20845

    Image Image

    Hey everyone, I was working today on this feature. For now its just a draft, but would be nice if any maintainer can review it and give some feedback 🙏🏻

    Discard & Restore work as expected. I'll probably add tests on the next days.

  17. gbakeman commented on Aug 3, 2025

    @gbakeman

    Looks amazing! Any chance we'll be able to see and edit descriptions? I find I forget what I was doing in my stashes, so one thing Visual Studio does nicely IIRC is it lets you write a description to remind yourself of what you were doing. 🙃

  18. Zetjen commented on Aug 3, 2025

    @Zetjen

    I think its possible, I would just need to check how git manages descriptions for stashes.
    Anyways I think its better to add the initial feature (see if the maintainers merge it 😅) and then improve it.

  19. rctneil commented on Sep 10, 2025

    @rctneil

    I'd love multiple stashes. Any updates on this?

  20. Zetjen commented on Sep 11, 2025

    @Zetjen

    Sadly they closed it, you can check the PR comments for the reason.

  21. 0xdevalias commented on Sep 12, 2025

    @0xdevalias

    you can check the PR comments for the reason

    To save people some clicks:

    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.

    Originally posted by @tidy-dev in #20845 (comment)

  22. maqalaqil commented on Oct 3, 2025

    @maqalaqil

    Can we proceed with this feature please. Its very very useful.

  23. RudyAramayoPGE commented on Nov 14, 2025

    @RudyAramayoPGE

    Booooooooooooo!!!!!! I would be using Sourcetree again but there is a deep issue with SSH and checking out dependencies.... BOOOOOOO!!!!!!

  24. pol-rivero commented on Dec 17, 2025

    @pol-rivero
    Contributor

    Multiple stashes are supported in my fork, in case you are interested: pol-rivero/github-desktop-plus.

  25. LionelMarbot commented on Nov 1, 2026

    @LionelMarbot

    Still waiting for this. Please!

  26. dpuckett commented on Nov 2, 2026

    @dpuckett

    5 years......

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnot-plannedpitch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions