Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can do what you want, but your <code>one</code>, <code>two</code>, and <code>three</code> would need to be accessible to whoever will need to clone them—this is not usually the case for “random” development repositories.</p> <p>If you do set this up, you will need to be very careful not to delete “your” repository (or make it otherwise inaccessible) since it is not just “yours”: it will be <em>origin</em> in your collaborator’s clones and it will serve as the “central”/“upstream” repository (as specified in <code>.gitmodules</code>).</p> <hr> <p>If all your collaborators are local (and can read from the repositories), you can add your existing sub-repositories as submodules by giving their local paths as URLs:</p> <pre><code>git rm --cached one two three git submodule add `pwd`/one git submodule add `pwd`/two git submodule add `pwd`/three </code></pre> <p>If not all your collaborators will be working on the same machine, then that will probably not work correctly (since it will store a local path in <code>.gitmodules</code>; non-local collaborators would have to adjust the URLs after <code>git submodule init</code>).</p> <p>If your <code>one</code>, <code>two</code>, and <code>three</code> are remotely Git-accessible, then you can specify their effecive URLs instead:</p> <pre><code>git rm --cached one two three git submodule add server:/path/to/your/main/one git submodule add server:/path/to/your/main/two git submodule add server:/path/to/your/main/three </code></pre> <p>In both cases, since you already have a sub-repository in place, <code>git submodule add</code> will use that instead of trying to clone from the specified path/URL.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload