From 63e651046f8f3c647ac71a854c4a5ef61fa66a81 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Wed, 17 Jun 2020 14:04:01 +0100 Subject: some git stuff --- .bash_profile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 7cd8fe4..23c06ed 100644 --- a/.bash_profile +++ b/.bash_profile @@ -44,6 +44,12 @@ function pm() { emacsclient -c -n "$fn" } +function killmerged() { + for b in $(git branch --merged HEAD --no-contains HEAD|grep -vE 'stage|master|svn|develop'); do + git branch -d $b && git push origin :$b + done +} + export PERLDOC='-MPod::Text::Color::Delight' fortune -- cgit v1.2.3