Delete all local git branches while retaining the master

After a sprint, all the local branches you have are useless and take up space. Below is a small order to remove them (except the master)

git branch grep -v "master" xargs git branch -D
Publicités

Leave a Reply