Git is able to pick up the merged branches and we can delete them but in some cases, let's say you have a bunch of branches which were rebased before a merge and its tracking branch at remote wasn't updated. Now this local branch was deleted as well.
Any way to figure out which branches on remote are the ones that are safe to delete?