A
A
Alexander Korolev2015-11-25 13:41:11
git
Alexander Korolev, 2015-11-25 13:41:11

How to manage different projects with the same basic functionality?

Good afternoon.
I have one project that is planned to be used for another customer. It turns out that the functionality will be the same to a greater extent, the main differences will be only in design.
What is the best way to develop: everything in one repository, just make different branches, or all the same in different ones?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Sidorov, 2015-11-25
@morr

You are struggling with branches. Move the basic functionality to the git submodule https://git-scm.com/book/ru/v1/%D0%98%D0%BD%D1%81%...
Git works with them a little crookedly, it will not be so convenient, as with one repository, but you can live.
Or, if your language/framework supports moving code into easy and convenient plug-ins, then move the engine into a module and into a separate repository.

S
sim3x, 2015-11-25
@sim3x

Isolate the code
Put it in your repository
Make it a gem
Set up versioning
Install it as a third-party application

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question