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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to remove disconnected branches?

Please check my screenshot. I don't know if deleting sourcetree records manually will damage my system. How do i remove the red branches without damaging the blue?


Branches in sourcetree.JPG

1 answer

1 accepted

0 votes
Answer accepted

There are 2 ways you can achieve that.


1. Either go to bitbucket/github where your remote is hosted and delete remote branches there. Then, push your local branches to remote and that will bring your remote branches to same place as your local branches.


2. you can hard push/forced push it. Sourcetree does not allow forced push so this you have to do from terminal. You can run `git push -ff origin <local_branch_name>

if you want to do it from sourcetree only you have to enable force push option from settings details are found in this post

To be safe just switch to that particular branch on local and then run `git push -ff origin`


Hope this helps.

The first couldn't work. However, I managed to find records of the unwanted branches lower in sourcetree and managed to delete from there. Whilst the issue is properly solved, I wish to ask : Can someone update the manuals? These are things that should be in the manuals.

pgami Community Leader Jun 12, 2020

I second that too :)


Can you please accept the answer if that worked for you. Thank you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

3,716 views 19 19
Join discussion

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