< a quantity that can be divided into another a whole number of time />

January 28, 2019

How to clean merged branches from all your Git repos? (Assuming they all live in the same master directory.):

for d in */; do cd $d; echo WORKING ON $d; git branch --merged master \
  | grep -v "\* master" | xargs -n 1 git branch -d; cd ..; done