Using stash in SourceTree


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

35 votes
Accepted answer

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:

Thanks for the feedback

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

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.

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!

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.

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

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"..

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...

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.

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" 


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, which is currently the latest version.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

946 views 3 2
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you