How to apply certain items in the stash rather than all

Hi, so I used stash feature in SourceTree for the first time today. After stashing my changes I pulled in and applied an update from the master branch. I clicked on the stash column on the left and selected the entry. It shows all the files that were different. Is there a way to check the files I want applied and only apply those files and not all of them? Or maybe I do want to restore all of them? I don't know.

More detail

I guess I was looking for a view that showed the files in a grid with checkboxes next to them.

2 answers

1 accepted

1 vote
Answer accepted

Hi Monkeypunch,

Apologies if I'm misunderstanding your question, but is this Stash the Atlassian product, or stash the git functionality we're talking about? It seems like you might be talking about the latter, possibly in SourceTree or another Git GUI of some type.

Assuming we're talking about Git, after you unstash your changes you can certainly add a specific set of files to the 'index' and committing. Most guis will allow you checkbox which files you want to add when you commit. You can then re-stash the remaining changes, or ignore them.

I hope I'm on the right track.


Hi Charles,

I'm using the stash feature in SourceTree. I don't know what this Stash thing is you speak of. Why would I want it (does it do what stash does in SourceTree)?

Hi Monkeypunch,

Just as I suspected. Stash is the latest product from Atlassian that does Git repository management for behind-the-firewall customers. We've just released 2.0 which included the important branch permission feature. It would be a good fit for you or your company if you needed Enterprise Git hosting, but weren't interested or able to use cloud-based services such as Bitbucket or GitHub. The name Stash is obviously derived from a certain Git feature. ;-)



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables ROLLBAR_ACCESS_TOKEN...

216 views 0 12
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