SerVB
03/18/2022, 10:14 AMPiotr Krzemiński
03/18/2022, 10:15 AMSerVB
03/18/2022, 10:16 AMSerVB
03/18/2022, 10:16 AMSerVB
03/18/2022, 3:03 PMfor k in $(git branch -r | sed /\*/d); do
if [ -z "$(git log -1 --since='Jan 1, 2021' -s $k)" ]; then
branch_name_with_no_origin=$(echo $k | sed -e "s/origin\///")
echo deleting branch: $branch_name_with_no_origin
git push origin --delete $branch_name_with_no_origin
fi
done
SerVB
03/18/2022, 3:11 PMdst refspec v1.3.0 matches more than one
.
So removed them manually like that: git push origin --delete refs/heads/v1.3.0