R
R
Renat Sagdeev2017-01-07 18:04:59
git
Renat Sagdeev, 2017-01-07 18:04:59

How to work with a cloned template?

There is a template on github, you need to clone it yourself. I made a small application on it, and I want to upload it to my github. How to implement correctly?

  • The template branch will contain the template itself. If it is updated, then update the entire project at home.
  • In the dev branch , development.
  • In the master branch , the finished version.
  • In remote change origin to your repository, and add template the template repository.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
abcd0x00, 2017-01-15
@feyak1n

It is not necessary to store all this in one repository. You can make a template repository, and attach the repository of your project to it directly on the disk. In the external source of your project, you simply write the path to the neighboring folder, where the template lies with all its commits. As a result, you will have two repositories, but there will be no dump of template commits and your project commits.

T
TyzhSysAdmin, 2017-01-07
@POS_troi

I didn't quite understand what you want, but look towards "git submodule"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question