user11499570
user11499570

Reputation: 43

Create new repo from Github template

I have created a repo designated as a template on Github that I'm trying to use as the basis for a new project so that I can reduce initial project startup time for projects with the same functionality.

Every time I clone that template to my local machine under a new project name, it is still associated with that original template and any commits will go there.

I've tried different variations of clone, meteor-boilerplate is what I'm trying to use as to begin an application called notes. git clone https://github.com/ajsingh4/meteor-boilerplate.git notes

Would appreciate any advice as to how I can use that template as the basis for a new project in a separate repository.

Upvotes: 3

Views: 1043

Answers (2)

user11499570
user11499570

Reputation: 43

Solved this via 1) Creating a new repo on Github using the template 2) Clone new repo locally 3) Change the remote URL to the new repo

Upvotes: 0

VonC
VonC

Reputation: 1326746

If you have created a GitHub template repository, then you don't clone it directly.

You create a new one from template, directly on the GitHub site.

Then you clone that new repository: you won't have to change its remote URL, it will already be the correct one.

Upvotes: 1

Related Questions