P
P
pavel_manylov2011-09-22 08:41:19
git
pavel_manylov, 2011-09-22 08:41:19

Moving (sub)projects with shared code to git?

We have the following situation: 4 rails applications with common models and migrations. Now it is implemented like this: the code of models and migrations is actually located only in one of the subprojects, in the remaining models and db there are symlinks. No cvs is currently used, rubymine's built-in local history is used for rollback.
Now I want to organize all this code in a git repository (or repositories) so that I can upload it to github in the future. The main requirement is not to reduce the ease of development.

Let me explain what I mean by simplicity:

  1. When editing models or creating migrations in one of the projects, these changes should be immediately reflected in the rest.
  2. I would like to be able to use rubymine's integration to work with the repository (quite convenient when resolving conflicts, judging by my experience with mercurial in rubymine)


Those. I want everything as it is now, but with a git :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bagyr, 2011-09-22
@bagyr

man git-submodule, symlinks will then have to be cut out and updated by
git submodule foreach git pull.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question