Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Stash auto on branch change


When switching to another branch, and having some staged / unstaged files, Sourcetree will prompt:
— Discard local changes? (with a checkbox)

May it be possible to also prompt:
— Keep local changes (through temporary stash)

It happened often that switching from one branch to another, we want to keep our local changes. Now, it means:
1. clicking on a new branch
2. cancelling the prompt (because we want to keep local changes)
3. stashing,
4. clicking again on the new branch
5. unstashing

With an option like that (as last option — or even also as a global default settings), it will come down only to the first step.

Naming the stash has not interest here, because it's created before switching branches and destroyed immediately after the switch.

Thanks a lot.

1 answer

0 votes
minnsey Atlassian Team Nov 23, 2018


This option is being prototyped currently.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 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...

7,155 views 5 13
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you