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.
You create a
projectsdirectory locally, which contains many sub-projects, and then when submittinggit, just submitprojectsas a projectHowever, 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
in this directory one by onerepository, and then Create aprojectsdirectory locally, and thengit cloneeach project