diff --git a/scripts/delete_git_branches.sh b/scripts/delete_git_branches.sh new file mode 100755 index 0000000000..0745d42d1a --- /dev/null +++ b/scripts/delete_git_branches.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# List of branches to delete +branches=( + "my_branch1" + "my_branch2" +) + +# Function to delete branches locally and on GitHub +delete_branch() { + local branch=$1 + + git branch -d "$branch" + git push --delete origin "$branch" +} + +# Iterate over the branches and delete them +for branch in "${branches[@]}"; do + delete_branch "$branch" +done