I have a git repo where I pushed my latest changes to a remote. In the last days I deleted several branches locally but couldn't remove them on the remote, since I didn't have any connection to the git server.
Is there a way to delete the remote branches, which don't exist anymore on my local repo? We talk about 200 branches, so a manual approach is not desired.
I found several answers to delete a local branch, that does not exist on the remote anymore via git fetch --prune
, in my case I am looking for the other way around.
Any help is highly appreciated