SourceTree Git Flow Finish Feature Delete Remote Branch

After doing some research to see if anyone else wanted the same thing that I wanted. I found SRCTREEWIN-782 on Jira for SourceTree. It says that it has not been started yet and I was wondering if this is something that will be done in the future or if it is not practical. I am fairly new to Git and SourceTree, but I understand how Git Flow works. I noticed that you already have the "Delete Branch" AND "Push changes to remote" on the finish process of "Release" portions of Git Flow and it merges and deletes the remote and local release branch. I was wondering if you could have the same "Push changes to remote" option for when finishing a "Feature". Currently it just deletes the local feature branch and leaves the remote feature branch there. Throughout time, this would create many, many, many feature branches in our Repository that we wouldn't use ever again. I personally feel like it "should" have the option to delete the remote feature branch.

8 answers

This widget could not be displayed.

+1 for this. It's very confusing after a while to tell which remote branches are still live. And my devs keep forgetting to delete them manually.

Agreed. I'd love to have a couple options: 1. delete from local; 2. delete from local and remote;

This widget could not be displayed.

Totally agree. Voted on this issue.

This widget could not be displayed.

Yep, totally agree (but I logged that Jira issue in the first place, so I'm biased :))

This widget could not be displayed.

I too came across this issue. I found this fork of git-flow called the avh edition(https://github.com/petervanderdoes/gitflow) fixes this behaviour among other improvements. Its actively maintained unlike the original. There are feature requests to integrate the avh version to sourcetree. Please vote for them. (Windows - https://jira.atlassian.com/browse/SRCTREEWIN-1394, Mac - https://jira.atlassian.com/browse/SRCTREE-1762)

This widget could not be displayed.

Totally agree. There should be an option in the dialog to delete the remote branch too... If forgotten, the origin/remote becomes soon a mess.

This widget could not be displayed.

+1 for this uption! this is what makes git flow so clear imo, it is so essential.

This widget could not be displayed.

I would like to see this feature as well

This widget could not be displayed.

Mercurial doesn't have this/these problems.  *sigh*....

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

863 views 2 3
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