Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maintaining Project with Git

I have 2 project, and actually these 2 project is about 80% same each other, the mainly difference is just about language and business model, one is for larger audience using english language and have a 9$/month business model, another is using local language with freemium business model.

Sometime when I want to add new feature/functionality, I want to add it in both of the project, but also sometime I want to add feature especially just for the local project.

My question is, how do I maintain these 2 project with git ?

  1. Maintain 2 git repository for each project or
  2. Maintain single git repository with 2 mainly branch or
  3. Any other suggestion ?
like image 439
gkrdvl Avatar asked Apr 06 '10 19:04

gkrdvl


People also ask

Can you use GitHub for project management?

Project Management in GitHubIt is primarily used for bug tracking, but its core functionality meant it is also a useful tool for more general project management purposes. Getting started is as simple as creating a new issue with a new idea or goal, then assigning tasks and tracking progress.

What is a key advantage of using Git in your project?

One of the biggest advantages of Git is its branching capabilities. Unlike centralized version control systems, Git branches are cheap and easy to merge. This facilitates the feature branch workflow popular with many Git users. Feature branches provide an isolated environment for every change to your codebase.


1 Answers

create three git projects:

  • one "core" project: it contains the code shared between the other two projects

  • your english project: it has a submodule for the core plus specific code

  • your translated project: it also has a submodule for the core plus specific code

this way you can change your core project, update the submodule references and you'd be good

like image 148
knittl Avatar answered Oct 05 '22 11:10

knittl