TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Generate new repositories with repository templates

146 pointsby mxstbralmost 6 years ago

10 comments

sthielenalmost 6 years ago
This is awesome! I&#x27;ve been working on something similar with Koji [0], with the added twist of taking templates for full stack (web) apps and cloning remote dev environments + production deployment pipelines alongside the code. It&#x27;s been especially valuable for more junior devs&#x2F;people just getting started to be able to &quot;play&quot; and remix an app instead of trying to start building from scratch. Especially when some of them have never even heard the word &quot;repository&quot; before.<p>There&#x27;s a lot of interesting stuff that comes when thinking about these kinds of templates from the level of fully-baked products instead of just lower-level components like frameworks and libraries. Excited to see where Github is headed with all of these recent feature releases.<p>[0] - <a href="https:&#x2F;&#x2F;gokoji.com" rel="nofollow">https:&#x2F;&#x2F;gokoji.com</a>
评论 #20140329 未加载
edjragealmost 6 years ago
I don&#x27;t understand. What&#x27;s the difference between this and just cloning (not forking) a repo? If it&#x27;s the same, why not just add a button called &quot;clone&quot; that appears in _all_ repos?
评论 #20134706 未加载
评论 #20134053 未加载
评论 #20134329 未加载
oracle2025almost 6 years ago
I&#x27;ve been using cookiecutter for this mostly. But in general I feel like excessive boilerplate is more like a code smell. Reusable code should live in libraries, and frameworks should have sane defaults and configuration be kept to a minimum.
l0b0almost 6 years ago
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:<p>- Pre-commit hooks for linting&#x2F;formatting and unit tests.<p>- Basic CI pipeline configuration with at least build, test and release&#x2F;deploy phases.<p>- Package installation configuration for the frameworks you want.<p>- Container&#x2F;VM configuration for the languages you want to enable cross-platform and future-proof development.<p>- Documentation to get started with it all.
praveenwebalmost 6 years ago
This is useful for boilerplate code. But keeping it in sync with upstream isn’t possible due to it having a single initial commit and separate history. For that a fork is the only choice. I see how the use cases can pan out for templates. Glad that Github is releasing more features off late :)
评论 #20134654 未加载
marvionalmost 6 years ago
It&#x27;s nice to have, but it does feel super limited with tools like <a href="https:&#x2F;&#x2F;github.com&#x2F;tmrts&#x2F;boilr" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tmrts&#x2F;boilr</a> or <a href="https:&#x2F;&#x2F;github.com&#x2F;audreyr&#x2F;cookiecutter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;audreyr&#x2F;cookiecutter</a> which allows to generate customized files&#x2F;directories via variables and conditions.
meddlepalalmost 6 years ago
This is a great improvement. The inability to fork within an organization always made bootstrapping new projects from a template just ever so slightly too annoying.
muzzioalmost 6 years ago
Sounds pretty awesome. I&#x27;d especially love it if frameworks like Spring offered releases via this channel.<p>I&#x27;d be curious to see how composability works with this, too: if for instance I wanted to make a React+Rails boilerplate, it&#x27;d be awesome if users could cherry-pick a commit to use it with their Bugsnag+Rails boilerplate.
RyJonesalmost 6 years ago
I played with this this week. I like it! I wish it kept the branch protection rules and the like if the new repo is in the same org, but overall, good times
jsilencealmost 6 years ago
Would love to see templates for reproducible science.
评论 #20133753 未加载