Remove all merged git branches
Okay, I didn't learn it today but I do need it and have to look it up all the time, so here it goes:
git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d
Source: StackOverflow, obviously.
Okay, I didn't learn it today but I do need it and have to look it up all the time, so here it goes:
git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d
Source: StackOverflow, obviously.