Git add all repositories under a certain path as submodules recursively -


How can I add all the sub-repositories as submodules just under the initial git repository?

I have two separate repositories that I am tracking separately, now I want to take them in a big project, but still want to keep their respective origin.

I just did git init .

You can try to do something like this:

  Find -Mexade 1-Type D-Xacit Add GIT Submissions ./ {} \;   

This should be unsuccessful for regular folders, and may be successful for nested GIT repo folders within your main repository. You've been added once.

Once added, you have to commit to your main repo, which you just created (with submodule add ) to record.

Note that you will still have to add yet (because their current URL will be their own folder)

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -