search

Home  >  Q&A  >  body text

How to submit the local repository to the repository on git as a sub-project

I have a local repository, and now I want to submit it to a repository on git, but there will be many other projects in this repository, so I want to submit this project together with the project parent directory instead of directly Submit the source code to the repository root directory. How should this be achieved? Thanks.

迷茫迷茫2724 days ago734

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-31 10:37:07

    You create a projects directory locally, which contains many sub-projects, and then when submitting git, just submit projects as a project

    However, this approach is not very recommended. Projects should be as independent as possible. Combining multiple projects into one project will cause too many dependencies in the future and poor scalability. Therefore, the general approach is to use each project as one repository, and then Create a projects directory locally, and then git cloneeach project

    in this directory one by one

    reply
    0
  • Cancelreply