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

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 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template