Skip to content

Instantly share code, notes, and snippets.

@tekkub
Created September 8, 2011 10:02
Show Gist options
  • Select an option

  • Save tekkub/1203061 to your computer and use it in GitHub Desktop.

Select an option

Save tekkub/1203061 to your computer and use it in GitHub Desktop.

Revisions

  1. tekkub created this gist Sep 8, 2011.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    [alias]
    prunelocal = !sh -c 'git branch -d `git branch --merged | grep -v "^*" | tr -d "\\n"`'
    pruneorigin = !sh -c 'git push origin `git branch -r --merged | grep \"^ origin/\" | grep -v "/master$" | sed "s/origin./:/g" | tr -d "\\n"`'