Monday, January 9, 2023

Git delete local multi branches

 git branch | grep "<pattern>" | xargs git branch -D

Where are:

1st part gets all local branches

2nd part selects by pattern only

3rd part deletes selected branches

Links:

https://dev.to/lauragift21/git-delete-multiple-branches-5537
https://www.codegrepper.com/code-examples/shell/git+delete+multiple+branches+local
https://git-scm.com/docs/gittutorial

No comments:

Post a Comment

Add disk image to Windows OS on Proxmox

  1) Enter into the Proxmox console 2) Select the VM -> Hardware -> Add -> Hard Disk: 3) Configure the new disk image: 1. Select th...