Skip to content

Instantly share code, notes, and snippets.

@leonlaser
Created July 8, 2020 08:19
Show Gist options
  • Save leonlaser/1737d18aec93bae88368b626e3d3b66a to your computer and use it in GitHub Desktop.
Save leonlaser/1737d18aec93bae88368b626e3d3b66a to your computer and use it in GitHub Desktop.
[Remove merged local branches] #git #shell #branch
#/bin/env bash
git branch --merged | egrep -v "(^\*|master|develop) | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment