My need
Hi, I'm looking for a command to delete all local branches already pushed to origin.
I especially want to keep all branches with commits not pushed yet to their respective remote branches.
Reason
git prune
does a part of the job by clearing branches while the remote is deleted, but as I have many feature branches I would need to keep only the branches which have not been fully pushed to remote, to avoid having a long list of local branches in my repo, restricting them to those actually in works.
Thank you!