Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best Git strategy for a project on multiple platforms

Hi there i have an application that has several different applications these are:

  1. "Client Server" Application (java)
  2. "License Server" Application (java) (i am deploying this app to heroku with git)
  3. "An Auto-update application" (java)
  4. "Client Application" (objective-c)

all i know about git is standard commiting commands and things like that and i have a github membership with 5 private repositories. So i am wondering what is the best way to utilize git on this? Possible answers are:

  1. Create a single git repo and put those seperate projects in "branches" ?
  2. Create a single git repo and just put those projects in seperate fodlers?
  3. Just put them into different git repositories?

Thanks for answering.

like image 798
dreampowder Avatar asked Mar 19 '13 08:03

dreampowder


1 Answers

I would base my decision around whether the applications are to be deployed directly from Git. I would look at a combination of options 2) and 3) - I'd definitely put the license server application into its own repository as it's being deployed to Heroku. I'm not too familiar with Heroku deployment, but it may well deploy everything that's in a specific branch, so if you add all your applications to folders within the same repo, then they'll all be deployed to Heroku together. That may not be what you want.

If different developers/teams work on different applications, they'll find it easier if the applications are in their own separate repositories.

Forget about 1) - a branch is simply a pointer to a commit, so don't add different projects to different branches.

like image 151
levelnis Avatar answered Oct 05 '22 07:10

levelnis