Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,636
Community Members
 
Community Events
168
Community Groups

[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

2 votes
Answer accepted
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.

Now this is pretty available directly in IntellJ and XCODE, I think we will all begin to expect it. The main reason I want this the most is that there are some derived changes like build number increments which I do not care to merge or push.

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
TAGS

Atlassian Community Events