search

Home  >  Q&A  >  body text

php - How to separate subprojects in a project in git into independent projects

A project A in the git warehouse contains three sub-projects. How to separate one of the sub-projects into a separate project

phpcn_u1582phpcn_u15822828 days ago527

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 13:05:56

    Shouldn’t we copy it and then clone it into the previous project again

    reply
    0
  • 黄舟

    黄舟2017-05-16 13:05:56

    1. You can create a new branch
    2. You can create a new warehouse

    Since it is an independent project, you should create a new warehouse.

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 13:05:56

    git submodule
    git subtree
    Probably refers to this? The words are unclear

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 13:05:56

    git submodule

    reply
    0
  • Cancelreply