Sometimes I have a few versions of the same features on other branches which has very similar names. How can I remove all local branches which are not on remote repo?
A little example: My local branches:
feature/authorization
feature/authorization-2
feature/authorization-with-error
Remote repo branches:
feature/authorization-2
And I want to have only local branch which is on remote repo: feature/authorization-2