Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Create git-delete-local-merged

  • Loading branch information...
commit 2b3650e880075eb6ad6d745c450163741153e3d6 1 parent 7dfabaf
Coby Chapple authored November 17, 2012

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  bin/git-delete-local-merged
8  bin/git-delete-local-merged
... ...
@@ -0,0 +1,8 @@
  1
+#!/bin/sh
  2
+#
  3
+# Delete all local branches that have been merged into HEAD. Stolen from
  4
+# @holman, who in-turn stole from our favorite @tekkub:
  5
+#
  6
+#   https://plus.google.com/115587336092124934674/posts/dXsagsvLakJ
  7
+
  8
+git branch -d `git branch --merged | grep -v '^*' | grep -v 'master' | tr -d '\n'`

0 notes on commit 2b3650e

Please sign in to comment.
Something went wrong with that request. Please try again.