Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,558,943
Community Members
 
Community Events
184
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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
AUG Leaders

Atlassian Community Events