Stash/SourceTree GitFlow

I'm evaluating Stash and SourceTree for my organization. We use gitflow today, and are simply using command line interface. We want to add code review, and the Stash pull request feature looks like it would fit the bill very nicely.

I believe I've figured out how to work within SourceTree and Stash up to the point where we create a pull request. At that point I've merged the change into develop on Stash and it properly deletes the branch on the Stash repo.

However, I'm left with a feature branch on the local repository. What should we do with that feature branch? Finishing it on the local repository results in a merge to develop. But, the code's already been merged to develop in the Stash repo. Seems like I get duplicated merges.

Or, should we simply delete the local branch after it's been merged into develop in the Stash repo?

1 answer

1 accepted

0 votes
Accepted answer

Hi Dale,

It's as simple as deleting the local branch. :)

If you find that the 'remote' feature branch still hangs around in your local repository, even though Stash deleted it, you might want to 'prune' during fetch.

The Stash team uses Pull Requests as our primary source of code review without any problems. Let us know if you find something missing.


Thanks Charles. Simple is always preferred. I was just concerned that perhaps I was somehow dropping a step.

And, your suggestion on "fetch" is certainly appreciated as I noticed the remote branches were in fact still hanging around in the local repo.

No worries Dale. Git and DVCS are great, but can certainly be a little confusing when changes can happen in different places.

Best of luck. :)


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,961 views 7 10
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