Azure Repos Branch Hell
Published in
Jun 5, 2022
If you use git repos and work with lots of branches, Sometimes things can get messy. You can work on short-term or long-term branches, but if you don’t delete them, you’ll have a major problem.
I’ve shared a useful script that you can use when you have this problem.
The script below generates an excel report for old branches and also deletes them.
Before you run, there are a few things you should do.
- The date format may differ depending on the servers. Remove the if block to check.
- You have to change the values of the variables, then run it via PowerShell.
References