4
In my current project, I locally created several branches for local testing - all from master. Now, I have more than 20 local branches that don’t exist on the server.
I wanted to clean up here, and delete all local branches that don’t exist remotely (either because they’ve already been deleted remotely, or because they never existed there). I didn’t want to delete one by one in my hand, but I still haven’t found a way...
What do you recommend? Does anyone know how to do with one command? A script is also acceptable - I use Windows, but I don’t want to limit responses to other operating systems if someone suggests a script or something like that...
I think it would be good to limit to your operating system, otherwise it will rain answers that will not even be useful to you.
– Jéf Bueno