How to submit the local repository to the repository on git as a sub-project
迷茫
迷茫 2017-05-31 10:35:07
0
1
659

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.

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all (1)
过去多啦不再A梦

You create aprojectsdirectory locally, which contains many sub-projects, and then when submittinggit, just submitprojectsas 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 onerepository, and then Create aprojectsdirectory locally, and thengit cloneeach project

in this directory one by one
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!