Our app team needs to significantly reduce the number of branches in one of our private repos due to its impact on our Jenkins pipeline and resulting failed deployments.
We kindly request your assistance in filtering and batch deleting all branches with a last commit before 2022. This would enable us to remove around 270 branches dating back to 2020 and 2021 in one go, which would be a significant win for us because currently this process is being done branch-by-branch manually.
After this initial batch deletion, we would like to cherry-pick excluded branches, then explore filter those not excluded and deleting all remaining branches that are 90 days or older. This would result in removing approximately 206 additional branches as of today.
We would greatly appreciate your help with this matter.
Thank you.
Repo branches
Menu with "Delete branch"