DEV Community

Discussion on: Using git to create a template project for repeated use

Collapse
 
jonathanhiggs profile image
Jonathan Higgs

Why not just clone the repo and delete the origin remote and push to a new remote that will be the actual project repo. Assuming you have template.git with the template and project.git as a bare repo:

$ git clone .../template.git project-name
$ cd project-name
$ git remote remove origin
$ git remote add origin .../project.git
$ git push origin master -u
Enter fullscreen mode Exit fullscreen mode