From ff14e9779518c60d9fe2321945a17fdd39a6e2ff Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 28 Aug 2021 06:43:24 +0200 Subject: Adding git tools. Signed-off-by: Daniel Baumann --- git/bin/git-remove-origin-branches | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 git/bin/git-remove-origin-branches (limited to 'git/bin/git-remove-origin-branches') diff --git a/git/bin/git-remove-origin-branches b/git/bin/git-remove-origin-branches new file mode 100755 index 0000000..f2b580f --- /dev/null +++ b/git/bin/git-remove-origin-branches @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +BRANCHES="${*}" + +for BRANCH in ${BRANCHES} +do + git push origin :"${BRANCH}" +done -- cgit v1.2.3