Skip to main content

To delete multiple branches based on a specific pattern do the following:

  1. Open the terminal, or equivalent.
  2. Type in  for a preview of the branches that will be deleted.
  3. Type in 

Replace the <pattern> with a regular expression to match your branch names and that’s it.

Janes Oosthuizen

Author Janes Oosthuizen

Programmer and Tech Junky from Cape Town, South-Africa. I have been programming for more than 15 years in various languages including ( CSS, HTML, javascript, PHP, MySQL, Wordpress and many other ).

More posts by Janes Oosthuizen