summaryrefslogtreecommitdiffstats
path: root/git/config
diff options
context:
space:
mode:
Diffstat (limited to 'git/config')
-rw-r--r--git/config8
1 files changed, 8 insertions, 0 deletions
diff --git a/git/config b/git/config
index 069f4f9..03c6e91 100644
--- a/git/config
+++ b/git/config
@@ -67,3 +67,11 @@
/$rx/ && !/HEAD/ ? $_ : () \
} Git::command(qw/branch --sort=committerdate -r/) \
'"
+
+ # rmbranch <repository> branchname deletes local und remote branch
+ # <repository> defaults to origin
+ rmbranch = !"perl -MGit -E' \
+ my ($re, $br) = (@ARGV > 1? shift : q{origin}, shift // q{}); \
+ Git::command_noisy(qw{branch -d}, $br); \
+ Git::command_noisy(qw{push -d}, $re, $br); \
+ '"