It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using stash in SourceTree

Patrick O'Hara Aug 25, 2013

Hello,

I have been using SourceTree for a while at home. I really like it. It has made git considerably more intuitive for me to use. I have recently started using it at work (We use Windows at work). I just ran into an issue with the stash. I was able to stash some changes easily enough (its on the tool bar). I then pulled (actually fetch and rebase using the pull dialog). Then I when to pop my changes off the stash and found that there is no obvious way to do that. I assume that I am missing a context menu or some such. Please point me in the right direction, thanks.

Pat O

3 answers

1 accepted

37 votes
Answer accepted
Ryan Beesley Sep 10, 2013

The Stashes are visible on the "left sidebar," situated between the Bookmarks and the File Status, Log / History, and Search views. There is a context menu for each Stash that will let you Apply or Delete a saved stash.

This really needs improvement.

I had managed to resize my "left sidebar" so that it was completely hidden (well, not obvious that it was there at any rate). The only thing that looked like a "left sidebar" to me was the Bookmarks sidebar. As a result I spent a half hour trying to make sense of the few support answers I could find.

Two things would make this better. 1) Make the resize of the left sidebar more clear. Somehow make it obvious that there is content hidden when the sidebar is collapsed and make it easy to reset it back to appropriate dimensions. 2) Provide a GUI wizard to make unstashing as easy as stashing and put the action alongside the Stash icon in the toolbar. Additionally, provide a command in the Repository menu that is clearly the command partner of Stash.

Hi Ryan,

I've filed this for you on JAC here: https://jira.atlassian.com/browse/SRCTREE-1871

Thanks for the feedback

Jeroen Pluimers Mar 24, 2014

Can you file this for SRCTREEWIN as well? Or can I file it while referring to 1871 and this thread?

Christopher Corbell Sep 30, 2014

I just had the exact same issue as Ryan. I dropped a lot of f-bombs trying to figure out where my stashes went before I realized there was a whole area hidden between these pains. Would a menu item under "Actions" called "Apply Stashes" be a stretch? TIA.

Michael Kellogg Apr 24, 2015

I switched into my branch and expected to see the "Stash" icon button on the toolbar at the top light up and show a "1" the way the others do when they're active. I didn't see that, went into Git Bash and did a git stash list, saw my stash was safe and sound, then found this post and immediately found the Stashes sidebar button. Thanks for the heads-up!

Tom Bates Oct 22, 2015

BTW, if you don't see a Stashes entry on that secondary sidebar (it is under File Status, Branches, Tags, and Remotes on my screen), you might be (like I was) looking at a working directory (a bookmark?) that doesn't have any stashes. Check the tabs across the top to be sure you have the right thing selected.

Vukasin Nikodijevic Apr 21, 2016

At least "unstash" menu option to point you whenever.
It is kinda logical to have it below "stash" option.

Tom Richards May 19, 2016

I went searching for a "pop" or "unstash" operation in menus as well – not because the LH pane was minimized, but because I have a VERY long list of remote branches and I didn't think to scroll down it looking for Stashes.

I like Vukasin's suggestion of adding it to menu right under "stash"..

Hunter Mayer Feb 01, 2017

This is an issue for Shelve too. It is SUPER unclear. Thanks for posting this. I resized the left column and there was the show button. Days of work, just missing (appearance anyway.) The UI really needs to expand (SHOW) when you click on the label... Show is hidden on every install I have done. Everyone one of them... (about 4 different machines) I am looking for this now, but talk about freaking a dev out...

0 votes
Ian Jeffray Aug 27, 2013

On the left sidebar, hover over "Stashes" and you'll get a "SHOW" button. Hit it. Then you'll see your stashes, and can apply or delete them from there.

0 votes
Chris Catto Oct 10, 2016

To Stash changes in SourceTree we can go to the "Repository" menu ( right of File & Edit) then "Stash Changes". 

Also in Terminal the command is simply "git stash" 

 

Stef Joosten Apr 30, 2017

I think the problem here is that stashes may get hidden by moving around the panes in the screen. I had that. I remember moving screens a long time ago. After several months I forgot about it. I stashed my changes and could not find my stash. If moving panes causes this problem (and other problems like it), the solution should be to make it more obvious that there are hidden panes. This problem still persists in version 1.9.10.0, which is currently the latest version.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

376 views 0 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you