[FEATURE REQUEST] Using repository template includes branch structure/permissions

It would be nice if creating a new repository from a template repository also (optionally) included the branch structure and branch permissions of the template repository, in addition to the issue tracker labels requested here: https://github.community/t5/How-to-use-Git-and-GitHub/Feature-request-when-creating-a-repository-from-a-template-copy/m-p/25584#M7308

We spend a lot of time setting up basic branches (e.g., master, dev, etc.) and permissions for projects, despite them being identical across the majority of our repositories. This would be a really nice time saver.

10 Likes

Hello @joebochill 

Thank you for your feedback! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

Once again, thank you for your input!

Greatly appreciated

MChevy422

Here to add my vote to this. We are really looking to add brach protections as a default.

7 Likes

This feature will help me a lot.

We use gitflow, so our new projects all start with 2-4 branches, and the develop branch is our default.

being able to template new projects with existing branches, perhaps mimicked from the template repo, or to default the default branch, would be a big help.

I would also like to have branch protection rules to be copied over from the template.

I suppose every option except maybe the status check requirements would be a 1:1 config port.

1 Like

i also would like this feature (include branch protection)