templates - GitHub - 用于复制设置和标签的模板存储库

标签 templates github scaffolding

我真的很喜欢这个功能 GitHub Template Repository哪里根据文档

After you make your repository a template, anyone with access to the repository can generate a new repository with the same directory structure and files.



我还想完成的是复制模板存储库的标签和设置。这将简化流程并带来标准化。

以下可能是我希望从模板存储库继承的可能设置
  • 禁用 Allow merge commits
  • 主分支规则,即 Protected branches
  • GitHub 页面源应该是 master branch /docs folder
  • 激活 After pull requests are merged, you can have head branches deleted automatically

  • 你试过这个吗?如果是,你是如何做到的?

    最佳答案

    目前,“Creating a repository from a template ”不扩展到设置,只扩展到存储库结构。

    如果所述存储库是组织的一部分,则您有一个 common set of settings您(作为该组织的管理员)可以管理。

    关于templates - GitHub - 用于复制设置和标签的模板存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60923506/

    相关文章:

    c++ - 从模板函数中缓存一个基类型以在 std::is_base_of<Here!,> 中使用

    php - Blade 模板递归包括

    python - 从模板进行查询

    Git 预提交 Hook 在 GitHub for mac 中失败(在命令行上工作)

    ruby-on-rails - 使用 rails scaffold 命令时是否可以为属性分配默认值?如何?

    c# - OData V4 属性访问

    c++ - Clang 3.0 C++ std::map<>::iterator 编译错误

    在 GitHub 页面上部署 Angular

    git - Cygwin 无法 pull 和推送代码

    asp.net-mvc - ASP.NET MVC : Accessing ModelMetadata for items in a collection