Sublime Forum

Option to clean deleted branches in sublime merge


I’ve been wasting a lot of time removing references to origin/branch that no longer exists because it’s default procedure on origin (gitlab) to delete merged branches.

It would be nice to have a button that check all known origin/branch still exists ans and remove the references to origin if they no longer exists.
It would also be nice that when the user delete a local branch X, sublime merge also check if the origin/X branch has already been deleted and if yes, also delete the reference to origin/X at the same time. I understand that some pepole would not want this, so it should be an option.

1 Like


fetch --prune does this. You can run it from the command palette.



It woks quite well but is there any way to create a button that runs this command ?



The drop down next to the pull button in the top right offers this