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
Add GUI support for git's "stash store" and "stash apply" commands #2304
As nice as GitHub Desktop's "magic stash" was it didn't cover all my git stash use cases… I still found myself using command line git too often (to store/apply stashes)… and I still do…
So… having "Store Stash" and "Restore Stash" buttons would be awesome…
Having a "stash list" popup menu would be gravy. ;-)
Version
GitHub Desktop version: Deer Types (222) OS version: 10.12.6
Reacted by Adrian Ziemkowski, Taras Dehtiar, Adar, Brad Mason, Jeremy Tarpley, Leon Xu, Graham Bishop, Anton Ukhanev, Junaid Nasir, Nicu and 33 more
This idea is interesting for the future, but this is beyond the scope of our current roadmap.
I'm going to add the future-proposal label to this issue and close it out,
so that we don't get overwhelmed with our backlog! We'll revisit these as part
of our next planning session.
How about the "apply" flow? Can we choose whether to pop or apply? Can we also choose which part of the stash to apply? That would be awesome!
Just want to mention that I am a long time Git CLI user, and have no problems with it, and love the granularity and so on. But GH desktop can really save some time, and is especially useful to me for not only quick peeks at projects, but also for interactive staging. Being able to apply a stash interactively would also be really beneficial, because doing that from CLI is inconvenient.
Reacted by Junaid Nasir, Tom Dodson, Andrew Hope and Shree
I am also in favour of this feature. Stashing is a very frequent operation, and it is currently one of the few commands I still have to leave Github desktop and go into the command line for. It'd be great to have a simple, intuitive GUI for simple stash/unstash operations.
Reacted by Scot Hacker, Luke Pinion and Samuel A. Lamb
I moved from Atlassian SourceTree to Github Desktop because SourceTree was becoming slow, and GHD feels "just right," but the absence of manual stash support is a serious ding to the workflow - the one thing for which I have to return to the shell several times per day. Thumbs up to this feature!
Would PRs from the community be accepted regarding this feature?
It'd be nice to be able to sketch out how this feature would work from the UI/UX perspective, so that we can think about the flow of the feature as well as think about potential corner cases. We've got a fair idea of the Git plumbing that's needed for a feature like this, but understanding how stashes are presented to the user and how this feature could be used to store and apply stashes will help rally people behind it.
Personally speaking, I'd love to see a simple UI walkthrough for stashing some changes, switching branches, and restoring them, that answers these questions:
how does the user initiate stashing changes when there are changes in the working directory?
when stashes are available for the current repository, how does the user notice this in the UI?
how does the user apply a stash to the repository from the UI?
I also think this feature depends on us making Desktop better at handling the merge conflicts that may arise from applying stashes. That's on our roadmap, but we can cover the other parts of this feature request in the meantime.
Reacted by Jed Fox, Scot Hacker, Sarthak Suri and Nicu
I see it as a tab named Stash next to Changes and History tabs. It will list you stashes in the same manner as History lists commits.
When you right-click an entry, it will display a pop-up with Apply and Delete entries.
Clicking Apply will display a confirmation window that shows the usual "Are you sure" message and three buttons: Apply, Apply & Delete and Cancel
To stash current changes, there could be a button somewhere next to the Commit button, but frankly, for minimal UX impact and low effort, a menu entry in Repository menu I believe will suffice for now.
Reacted by Manuel Schmalstieg, Dmitry Lezhnev, Lusso and milestribble
I've got to add my support to magic stashing as well - whether in the old form or some new form.
I'm trying to transition a group of programmers to git that have little experience in source control. The problem is, the current functionality is horrible and much worse than the problems listed above with magic stashing. It's like choosing to keep a huge issue because you don't want to address a significantly smaller issue the solution would create.
You want to talk about confusing new users? How about bringing changes over from one branch to a new one silently so they accidentally commit unfinished changes to the wrong branch!? This has already happened on our first day!_ I know this is how git works by default, but in my opinion it's one of the core deficiencies with git, and every other git gui I've ever used prompts you to stash before every checkout to circumvent that.
Either there needs to be a magic stash or a manual stash with a prompt to stash every time you switch branches whether git errors or not. This is the bare minimum. It seems to me some sort of stash is a core feature required to even use git, so I'm not sure what other features would be more important to add first. As it is right now, I have to tell people to make sure they commit before checking out another branch every single time, which is going to pollute our history, but there's no way I can get the entire team that's already reluctant to use proper source control to use a terminal just to stash before every checkout. The current functionality is the core problem with the current version in my opinion and makes it pretty unusable for new users because it's too dangerous that they'll commit changes to the wrong branch.
Really appreciate you laying out how this breaks down @dillydadally. We’re kicking off a round of research to look into problems related to merge conflicts, and we’ll be doing a portion of that with beginners, so I’m hoping we can see how this happens first-hand and evaluate possible solutions.
@billygriffin Thanks! Just in relation to your post, I'd say the second largest issue we've been having with new users is conflict resolution. When there's a conflict, they're lost as to what to do since there's no way to solve it in Github Desktop and no prompt to open it in a 3rd party program. It just says there's a problem without any direction or offering any potential paths to a solution. I'd say these are the two major problems we've been having so far. The only other minor issue is that merging is hidden in the menus and they get frustrated because they have to checkout the master branch and can't merge into it from their dev branch. Some sort of smart "update from master and then merge into master button" like the smart push/pull/publish button would be awesome.
@dillydadally For the merging issue, once 1.3.0 comes out (you can use the beta to get the feature now) the “History” tab will change to a “Compare” tab where you can merge by picking another branch and clicking the merge button.
Looks like all the issues related to stashing are closed. Can anyone confirm that means we just have to pray that the old version never stops working? The new version makes it TOO EASY to apply changes in one branch to a different branch, as others have noted, which can wreak havoc on live sites. Talk about confusing new users! Is there no hope for resolution of any kind?
Hi @barbara-sfx, thanks for the feedback. We agree that GitHub Desktop should have an improved experience to handle the two major cases where stashing seems to be common:
When you want to bring your changes from one branch to another
When you want to switch to another branch to do some other task, but don't want to lose your changes and retain them for when you come back to the current branch
So while this is not prioritized for the next couple months, it is definitely something we're interested in supporting, and I apologize that it's such a pain for you. In this issue (#5398) we're working through how we're communicating our priorities and hopefully enabling the community to better introduce features that we think should be in place but don't have the resources to prioritize immediately. Thanks again!
@vnvbsudhakar A few of the above posts are referring to the classic version of Desktop, which has not been supported for more than a year and we have no intention to do so. I also know this is a much-desired feature and we're actively discussing where it fits in prioritization, and I'm sorry that it's not there at present.
@w3debugger Our implementation of stashing appears when people switch branches with uncommitted changes, as we found that that's by far the largest use case for when people need to stash. We also know that some folks prefer to stash for various reasons while on a given branch, but we don't think it's a large enough use case at this point to prioritize. We're not wedded to that stance though and might potentially consider a separate more manual stashing option down the road.
Actually, I'm doing a lot of experiments while developing any feature, so I use stash too much. SourceTree is showing the Stash List and that's really helpful 👇
but sourceTree is really slow as compared to GitHub Desktop so I was looking forward to see this feature.
Reacted by Billy Griffin, Daniel Moskowitz and J.J. Jackson
Activity
shiftkey commentedon Jul 24, 2017
@geowar1 thanks for the suggestion!
This idea is interesting for the future, but this is beyond the scope of our
current roadmap.
I'm going to add the
future-proposallabel to this issue and close it out,so that we don't get overwhelmed with our backlog! We'll revisit these as part
of our next planning session.
shiftkey commentedon Nov 20, 2017
A suggested workflow from @smilecs was proposed in #3379:
XedinUnknown commentedon Feb 28, 2018
How about the "apply" flow? Can we choose whether to pop or apply? Can we also choose which part of the stash to apply? That would be awesome!
Just want to mention that I am a long time Git CLI user, and have no problems with it, and love the granularity and so on. But GH desktop can really save some time, and is especially useful to me for not only quick peeks at projects, but also for interactive staging. Being able to apply a stash interactively would also be really beneficial, because doing that from CLI is inconvenient.
surdu commentedon Mar 20, 2018
Would PRs from the community be accepted regarding this feature?
adamreisnz commentedon May 28, 2018
I am also in favour of this feature. Stashing is a very frequent operation, and it is currently one of the few commands I still have to leave Github desktop and go into the command line for. It'd be great to have a simple, intuitive GUI for simple stash/unstash operations.
shacker commentedon May 28, 2018
I moved from Atlassian SourceTree to Github Desktop because SourceTree was becoming slow, and GHD feels "just right," but the absence of manual stash support is a serious ding to the workflow - the one thing for which I have to return to the shell several times per day. Thumbs up to this feature!
shiftkey commentedon May 28, 2018
@surdu
It'd be nice to be able to sketch out how this feature would work from the UI/UX perspective, so that we can think about the flow of the feature as well as think about potential corner cases. We've got a fair idea of the Git plumbing that's needed for a feature like this, but understanding how stashes are presented to the user and how this feature could be used to store and apply stashes will help rally people behind it.
Personally speaking, I'd love to see a simple UI walkthrough for stashing some changes, switching branches, and restoring them, that answers these questions:
I also think this feature depends on us making Desktop better at handling the merge conflicts that may arise from applying stashes. That's on our roadmap, but we can cover the other parts of this feature request in the meantime.
surdu commentedon Jul 13, 2018
I see it as a tab named
Stashnext toChangesandHistorytabs. It will list you stashes in the same manner as History lists commits.When you right-click an entry, it will display a pop-up with
ApplyandDeleteentries.Clicking
Applywill display a confirmation window that shows the usual "Are you sure" message and three buttons:Apply,Apply & DeleteandCancelTo stash current changes, there could be a button somewhere next to the Commit button, but frankly, for minimal UX impact and low effort, a menu entry in
Repositorymenu I believe will suffice for now.dillydadally commentedon Jul 18, 2018
I've got to add my support to magic stashing as well - whether in the old form or some new form.
I'm trying to transition a group of programmers to git that have little experience in source control. The problem is, the current functionality is horrible and much worse than the problems listed above with magic stashing. It's like choosing to keep a huge issue because you don't want to address a significantly smaller issue the solution would create.
You want to talk about confusing new users? How about bringing changes over from one branch to a new one silently so they accidentally commit unfinished changes to the wrong branch!? This has already happened on our first day!_ I know this is how git works by default, but in my opinion it's one of the core deficiencies with git, and every other git gui I've ever used prompts you to stash before every checkout to circumvent that.
Either there needs to be a magic stash or a manual stash with a prompt to stash every time you switch branches whether git errors or not. This is the bare minimum. It seems to me some sort of stash is a core feature required to even use git, so I'm not sure what other features would be more important to add first. As it is right now, I have to tell people to make sure they commit before checking out another branch every single time, which is going to pollute our history, but there's no way I can get the entire team that's already reluctant to use proper source control to use a terminal just to stash before every checkout. The current functionality is the core problem with the current version in my opinion and makes it pretty unusable for new users because it's too dangerous that they'll commit changes to the wrong branch.
billygriffin commentedon Jul 18, 2018
Really appreciate you laying out how this breaks down @dillydadally. We’re kicking off a round of research to look into problems related to merge conflicts, and we’ll be doing a portion of that with beginners, so I’m hoping we can see how this happens first-hand and evaluate possible solutions.
dillydadally commentedon Jul 18, 2018
@billygriffin Thanks! Just in relation to your post, I'd say the second largest issue we've been having with new users is conflict resolution. When there's a conflict, they're lost as to what to do since there's no way to solve it in Github Desktop and no prompt to open it in a 3rd party program. It just says there's a problem without any direction or offering any potential paths to a solution. I'd say these are the two major problems we've been having so far. The only other minor issue is that merging is hidden in the menus and they get frustrated because they have to checkout the master branch and can't merge into it from their dev branch. Some sort of smart "update from master and then merge into master button" like the smart push/pull/publish button would be awesome.
j-f1 commentedon Jul 18, 2018
@dillydadally For the merging issue, once 1.3.0 comes out (you can use the beta to get the feature now) the “History” tab will change to a “Compare” tab where you can merge by picking another branch and clicking the merge button.
billygriffin commentedon Jul 19, 2018
Re: @j-f1's last comment, if you'd like to use the beta version, you can download it here: https://github.com/desktop/desktop#beta-channel
saulpreciado commentedon Jul 27, 2018
Thanks guys, this is the only thing Github Desktop version needs so a lot of my teammates can fully move to this app.
barbara-sfx commentedon Aug 24, 2018
Looks like all the issues related to stashing are closed. Can anyone confirm that means we just have to pray that the old version never stops working? The new version makes it TOO EASY to apply changes in one branch to a different branch, as others have noted, which can wreak havoc on live sites. Talk about confusing new users! Is there no hope for resolution of any kind?
billygriffin commentedon Aug 25, 2018
Hi @barbara-sfx, thanks for the feedback. We agree that GitHub Desktop should have an improved experience to handle the two major cases where stashing seems to be common:
So while this is not prioritized for the next couple months, it is definitely something we're interested in supporting, and I apologize that it's such a pain for you. In this issue (#5398) we're working through how we're communicating our priorities and hopefully enabling the community to better introduce features that we think should be in place but don't have the resources to prioritize immediately. Thanks again!
vnvbsudhakar commentedon Oct 12, 2018
Guys, I am using 1.4.2, I don't see any stash option. Please let me know in which version I can see that.
billygriffin commentedon Oct 12, 2018
@vnvbsudhakar A few of the above posts are referring to the classic version of Desktop, which has not been supported for more than a year and we have no intention to do so. I also know this is a much-desired feature and we're actively discussing where it fits in prioritization, and I'm sorry that it's not there at present.
billygriffin commentedon Nov 15, 2018
Since we're looking at this in the context of #6107 I'm removing the
future-proposallabel here.w3debugger commentedon Jan 16, 2020
I still can't see this feature. 😔When are we planning to release it? 🤔
billygriffin commentedon Jan 16, 2020
@w3debugger Our implementation of stashing appears when people switch branches with uncommitted changes, as we found that that's by far the largest use case for when people need to stash. We also know that some folks prefer to stash for various reasons while on a given branch, but we don't think it's a large enough use case at this point to prioritize. We're not wedded to that stance though and might potentially consider a separate more manual stashing option down the road.
adamreisnz commentedon Jan 16, 2020
I do love the approach you've taken with this, and covers pretty much all our needs and use cases 👍
w3debugger commentedon Jan 22, 2020
@billygriffin yay 🎉 found the GUI for stash 👍thanks
Actually, I'm doing a lot of experiments while developing any feature, so I use stash too much. SourceTree is showing the Stash List and that's really helpful 👇
but sourceTree is really slow as compared to GitHub Desktop so I was looking forward to see this feature.