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.
过去多啦不再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 clone
each project