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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I second that too :)
Can you please accept the answer if that worked for you. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.