Hi all,
I got a requirement that the company wants to regularly delete branches to keep like 3 latest versions or in a particular timeframe. Also, they want to set a limitation of the branch size. For example, over 1GB would be deleted.
Is there any plugin or solution that could help with this requirement?
Thanks in advance.
You would need an app to do it, one that allows you to create pre hooks to check size of the commit, and that allows you to run scripts to clean up branches. The one that comes to my mind is Scriptrunner.
Please note that branches are not linked to the size. Branches are just pointers, it is commits that are increasing the repository size.
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.