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,551,790
Community Members
 
Community Events
184
Community Groups

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
pgami
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 11, 2020 • edited

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
TAGS
AUG Leaders

Atlassian Community Events