Search code examples
gitgithubrepo

How to get two working project under one repository?


I have two git repositories one is a (react-guide) and the other one is (web-HTTP-Ajax). So I want to put that (web-HTTP-Ajax) repo under (react-guide) repository creating a new branch ex. section-9 in (react-guide) repository. It can possible? How can I do it?


Solution

  • Branches are for isolating a development effort of one code base, not to create folders.

    A possible solution would be to add your Web-HTTP-Ajax repository under react-guide, as a submodule, using git submodule add:

    cd react-guide
    git submodule add /url/of/Web-HTTP-Ajax