ef1f9749a219

git --lol
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 04 Dec 2013 12:23:18 -0500
parents df54cb569995
children 17b2d28b8871
branches/tags (none)
files gitconfig

Changes

--- a/gitconfig	Wed Dec 04 12:07:55 2013 -0500
+++ b/gitconfig	Wed Dec 04 12:23:18 2013 -0500
@@ -55,7 +55,8 @@
     delete-local-branch = branch -D
     delete-local-reference-to-remote-branch = "!sh -c 'git branch -rd $1/$2' -"
     delete-remote-branch = "!sh -c 'git push $1 --delete $2' -"
-    delete-branch = "!sh -c 'git delete-local-branch $1; git delete-local-reference-to-remote-branch origin/$1; git delete-local-reference-to-remote-branch upstream/$1' -"
+    ; delete-branch = "!sh -c 'git delete-local-branch $1; git delete-local-reference-to-remote-branch origin/$1; git delete-local-reference-to-remote-branch upstream/$1' -"
+    delete-branch = "!sh -c 'git delete-local-branch $1; git remotes | cut -f1 | sort | uniq | xargs -n1 -J % git delete-local-reference-to-remote-branch % $1' -"
 
     currentbranch = rev-parse --abbrev-ref HEAD