magic is happening

How to delete all the local branches but master

Read Time23Seconds

In the field development the count of branches reach form 1 to 40 50 in like no time. and most of then are of no use ones merged into the master. Its better to get rid of them but deleting them is a major pain in the ass.

Here is a proposed git command i found online, i repeat i found online (i’ll give the source below).

git branch | grep -v "master" | xargs git branch -D

i guess this was helpful


0 0

About Post Author


samgan excel at solving complex problems involving logic and step by step breakdown of the problem. In addition, to develop complex algorithms, he specialize in problem framing, systems design, and product development strategy. Sometimes he also enjoy public speaking.
0 %
0 %
0 %
0 %
0 %

Leave a Reply

Your email address will not be published. Required fields are marked *

Social profiles