Hi All,
Is there a way that we can delete old Bitbucket branches(1month old) in bulk for a particular repo?
Please guide.
Thanks!!
Manoj
We can do this via git command line by writing a script to find out old branches and delete them.
To do this you may have to mirror clone the entire repo to local machine, run the script and push mirror back to bitbucket.
Please check this link they have mentioned the command snippet to remove branches that are 1 week old. You can change the script according to your use case and test it.
Regards,
Vishwas
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.