Git Clean: Delete Already-Merged Branches

| No Comments

Here's a story that I read:




We start by getting a list of local branches which have already been merged into the current branch (i.e. HEAD) We then pipe that to grep to match on the "\*" character, inverting that match via -v to get all merged branches sans the current one.


via Pocket http://ift.tt/1eaeSmW

Leave a comment