You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Github Desktop does not seem to support multiple stashes. #12699
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.
Reacted by Diogo Dias, mahezsh, Joris W, Niels G, Diogo Dias, SnyersK, Philippe, Rodrigo Leitão, Ryan Thomas Lynch, Garry Dixon and 104 more
Reacted by Ryan Thomas Lynch, Joris W, henriquetoptal, SpellSinger, Salik Salman, Ali Kabiri, Gareth Edwards, MAHER AL-AQIL, iwx-copilot and Lionel Marbot
Reacted by henriquetoptal, Hari Gutta, SpellSinger, Wim, Jordan Macklem, Ali Kabiri, Gareth Edwards and Lionel Marbot
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?
Reacted by Dina, Max Ignatiev, Rubat, Karen Muñoz, hsiaoipark, Glenn 'devalias' Grant, Ade Septian, Nikolas Grottendieck, SpellSinger, Robert Einarson and 14 more
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.
Reacted by un0tec, Ryan Thomas Lynch, opowell, Gary Moore, Karen Muñoz, Pedro Mimoso Silva and Gareth Edwards
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.
Reacted by Glenn 'devalias' Grant, Dave-Young and Gareth Edwards
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.
Reacted by Gary Moore, Glenn 'devalias' Grant, Alexis Drogoul, Leif Harrison, Gareth Edwards and jvanakker
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
And that it's only when I stash through GitHub Desktop:
⇒ 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:
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.
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:
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.
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.
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
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.
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.
Reacted by Sammy-T, Paulo Sérgio, w43322, Nnamdi Anyanwu, David and SLGerr
Reacted by gbakeman, Angel Zimmermann, Gareth Edwards, Paulo Sérgio, w43322, Dave-Young, David, SLGerr and iwx-copilot
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. 🙃
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.
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.
Activity
ImRodry commentedon Mar 25, 2022
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?
steveward commentedon Jul 1, 2022
Requested in #14896.
TomEstelrich commentedon Nov 14, 2022
+1 with moving forward with this feature. I see this issue still opened, is there any update on that?
joriswitteman commentedon Nov 28, 2022
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-barbranch 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.
HaloFour commentedon Feb 23, 2023
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.
eheimburg commentedon Apr 14, 2023
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.
the7threvival commentedon Aug 24, 2023
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
0xdevalias commentedon Dec 16, 2023
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:And that it's only when I stash through GitHub Desktop:
That there is then UI shown for it:
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:
.gitignored files #17883Somewhat 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: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 reseton 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:
ngzaharias commentedon May 9, 2024
Any update when this would be added?
steveward commentedon Jun 27, 2024
Feedback from #18909:
tidy-dev commentedon Aug 20, 2024
Feedback from: #19134
Additional Considerations
barrykeenan commentedon Dec 5, 2024
+1 for this much needed feature. Only having 1 stash is very restrictive.
3 remaining items
ghedwards commentedon Jul 7, 2025
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.
Zetjen commentedon Aug 3, 2025
#20845
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.
gbakeman commentedon Aug 3, 2025
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. 🙃
Zetjen commentedon Aug 3, 2025
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.
rctneil commentedon Sep 10, 2025
I'd love multiple stashes. Any updates on this?
Zetjen commentedon Sep 11, 2025
Sadly they closed it, you can check the PR comments for the reason.
0xdevalias commentedon Sep 12, 2025
To save people some clicks:
maqalaqil commentedon Oct 3, 2025
Can we proceed with this feature please. Its very very useful.
RudyAramayoPGE commentedon Nov 14, 2025
Booooooooooooo!!!!!! I would be using Sourcetree again but there is a deep issue with SSH and checking out dependencies.... BOOOOOOO!!!!!!
pol-rivero commentedon Dec 17, 2025
Multiple stashes are supported in my fork, in case you are interested: pol-rivero/github-desktop-plus.
List every stash below the changes list
LionelMarbot commentedon Nov 1, 2026
Still waiting for this. Please!
dpuckett commentedon Nov 2, 2026
5 years......