Use template repositories on GitHub

Anton Klimenko
1 min readDec 2, 2022

--

Have you ever worked in a company or a team where you had some project starter repository? It's usually a sample service or application repository with an established code structure and CI/CD workflows. When developers need to launch a new service, the sample repository is cloned, and work on a new service starts there.

A repository template was developed for such use cases. The most significant difference between cloning the usual repository and generating from a template repository is Git's origins and history. A repository created from the template has a new history and origin not-related to the source repository.

But even when generating a new project from the template, you still need to change a project's name in such files as README or package.json. Therefore it's better to keep the template lean and minimise the number of places where the name is provided.

References

--

--

Anton Klimenko
Anton Klimenko

Written by Anton Klimenko

Software Engineer and chef @CloudRecipesIO | https://antklim.com

No responses yet