Sublime Forum

Option to clean deleted branches in sublime merge

#1

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

#2

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

0 Likes

#3

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

0 Likes

#4

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

0 Likes