0

I have define mongoengine schema files in a project, now I have a new project which needs to share these files. In case I edit the schema files and I always need to synchronize files in two projects, do I have some good choice?

Here is my old project:

ipin.crawler.orm # this is the package I want to share
    url_index.py
    page_store.py
    user_info.py
    captcha_info.py
....

new project:

ipin.web.orm
   url_index.py
   page_store.py
   user_info.py
....
roger
  • 9,063
  • 20
  • 72
  • 119
  • a submodule ? https://git-scm.com/docs/git-submodule – Ôrel Nov 04 '15 at 07:30
  • @Ôrel submodule will add the whole old project to new project, can I just add `ipin.crawler.orm` in my old project to new project? – roger Nov 04 '15 at 07:45
  • In your old project create a submodule and add into the shared files. Then when you create a new project add the submodule to have the shared files – Ôrel Nov 04 '15 at 08:50
  • Use [git subtree](http://stackoverflow.com/questions/22334382/git-subtree-only-one-file-or-directory) – houtanb Nov 04 '15 at 09:18

0 Answers0