Close Menu
Technotification
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Technotification
    • Home
    • News
    • How To
    • Explained
    • Facts
    • Lists
    • Programming
    • Security
    • Gaming
    Technotification
    Home › Open Source › GitHub Introduces Template Repository for Boilerplate Code Management

    GitHub Introduces Template Repository for Boilerplate Code Management

    By Subham KapisweJune 19, 2019
    Facebook Twitter Reddit LinkedIn
    GitHub introduces Template Repository
    Source: GitHub

    Github is widely used for code management, tracking changes and version control. It’s a very useful website and cloud-based service making a lot of things easier for developers and other IT professionals.

    According to a recent official update, GitHub has introduced ‘Template repository’ which can be used to manage and share directory structure and boilerplate code across the project easily. The service is based on a similar concept as ‘Boilr’ and ‘Cookiecutter’.

    Read: GitHub announces Package Registry: A new package management service

    How to create a GitHub template repository?

    As the name suggests, Template repository allows developers to mark a repository as a template. They can use this repository later for creating new repositories with all the template’s files and folders.

    You can either create a new template repository or mark an existing one as a template with admin privileges, it’s completely up to you. Just go to the Settings page and click on ‘Template repository’ checkbox.

    After creating the template repository, anyone with the required access will be able to generate a new repository with same directory structure and files via ‘Use this template’ button.

    You can see all of your owned templates, have access to, or have used in previous projects when you create a new repository through ‘Choose a template’ drop-down. Furthermore, all the template repo will have a new URL ‘/generate’ endpoint that makes distributing them a lot easier. You just have to redirect your template users to this endpoint.

    Templating is similar to cloning a repository with a restriction such as it must not retain the repository history. The users should have a fresh new project with an initial commit only.

    Also Read: Top 10 Most Popular Open Source Projects on GitHub

    “This is a part of something which could become a very powerful pattern: community-wide templates which include many best practices in a single commit,” said a HackerNews user. You can do the following things with the template repository now:

    • Pre-commit hooks for linting/formatting and unit tests.
    • Configure Basic CI pipeline with at least build, test and release/deploy phases.
    • Configure Package installation for the frameworks you want.
    • Configure Container/VM for the languages you want to enable cross-platform and future-proof development.
    • Documentation to get started with it all.

    As of now, the service is very basic but GitHub has plans add more capabilities to all of the template types—repositories, issues and pull requests. They want us to help spend less time repeating work so we can get back to building new things. The current version also has detailed documentation that will help junior developers and beginners to get started easily.

    Share. Facebook Twitter LinkedIn Tumblr Reddit Telegram WhatsApp
    Subham Kapiswe
    • LinkedIn

    A computer science engineer by education and blogger by profession who loves to write about Programming, Cybersecurity, Blockchain, Artificial Intelligence, Open Source and other latest technologies.

    Related Posts

    The Best Python Libraries for Data Visualization in 2025

    April 1, 2025

    Is C++ Still Relevant in 2025 and Beyond?

    February 20, 2025

    5 Best Programming Languages for Machine Learning in 2025

    February 18, 2025

    10 Must-Have Chrome Extensions for Web Developers in 2025

    February 17, 2025

    Difference Between C, C++, C#, and Objective-C Programming

    February 16, 2025

    How to Learn Programming Faster and Smarter in 2025

    February 14, 2025
    Lists You May Like

    10 Best RARBG Alternative Sites in April 2025 [Working Links]

    April 1, 2025

    The Pirate Bay Proxy List in 2025 [Updated List]

    January 2, 2025

    10 Sites to Watch Free Korean Drama [2025 Edition]

    January 2, 2025

    10 Best Torrent Search Engine Sites (2025 Edition)

    February 12, 2025

    10 Best GTA V Roleplay Servers in 2025 (Updated List)

    January 6, 2025

    5 Best Torrent Sites for Software in 2025

    January 2, 2025

    1337x Alternatives, Proxies, and Mirror Sites in 2025

    January 2, 2025

    10 Best Torrent Sites for eBooks in 2025 [Working]

    January 2, 2025

    10 Best Anime Torrent Sites in 2025 [Working Sites]

    January 6, 2025

    Top Free Photo Editing Software For PC in 2025

    January 2, 2025
    Pages
    • About
    • Contact
    • Privacy
    • Careers
    Privacy

    Information such as the type of browser being used, its operating system, and your IP address is gathered in order to enhance your online experience.

    © 2013 - 2025 Technotification | All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.