[Feature Request] SourceTree option to automatically stash before pull & unstash after successful merge

I've used SmartGit HG for a while but now I switched to SourceTree. One feature that I'm used to and really missing in SourceTree is the auto stash feature. Current pull workflow:

  1. Currently on master
  2. Made some code changed but I'm not yet ready to commit
  3. My collegue pushed some changes I want to make use of before committing my code changes
  4. I perform a pull in SourceTree. But now SourceTree wants me to commit or stash my changes.
  5. Since my commit is not yet ready I'm stashing my changes.
  6. I again click pull in SourceTree to fetch the changes
  7. I apply my stash

When I'm having the same scenario in SmartGit HG it will ask me to stash my changes (if any) before pulling and it will automatically apply the stash when the changes are successfully pulled. This works much faster and I think it's quite elegant. It even has the option to always apply this approach on every pull.

2 answers

1 accepted

This widget could not be displayed.
Jeff Thomas Atlassian Team Nov 04, 2013

Hi Mattijs,

There is an open feature request for this in the SourceTree JIRA - https://jira.atlassian.com/browse/SRCTREE-1732

You can vote on that issue to let the SourceTree team know that it's an issue you're interested in.

This widget could not be displayed.

You can add script as Custom Action to do the same.

Script can contain

git stash && git pull --rebase && git stash pop

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 7 hours ago in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

25 views 0 2
Join discussion

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