Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Filter Hundreds of Branches by Date in Private Repository, Then Batch Delete

Eliot June 22, 2023

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
Screenshot 2023-06-22 at 12.06.10 PM.png Screenshot 2023-06-22 at 12.02.27 PM.png

Menu with "Delete branch"

Screenshot 2023-06-22 at 12.03.53 PM.png

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events