Note that there are some explanatory texts on larger screens.

plurals
  1. POGit Clone Multiple Repository's into one developer repository
    primarykey
    data
    text
    <p>I am trying to setup a personal git repository example: jnew. Inside that repository I wan't to have many clones of other repository's. For example I have a repository called jnew and then inside there I wan't to have a clone called depot. My attempt at this was the following.</p> <ol> <li>Create repository ex. jnew</li> <li>Create local directory ex. /User/jnew/development/jnew</li> <li>cd /User/jnew/development/jnew</li> <li>git init</li> <li>git remote add <a href="https://github.com/jnew/jnew.git" rel="nofollow">https://github.com/jnew/jnew.git</a></li> <li>git clone --mirror <a href="https://github.com/jnew/depot.git" rel="nofollow">https://github.com/jnew/depot.git</a> depot</li> <li>git remote add depot git@github.com:jnew/depot.git</li> <li>git co -b 1234-test depot/verified-next</li> </ol> <p>This all works except for the clone part. I would expect clone to bring in all branches from that remote repository so on github I could go into the depot directory then the branch to view the latest code. For some reason every time I try this the remote branches are not brought it. An example remote branch is verified which is a copy of the master branch.</p> <p>Any help on this would be greatly appreciated. I have searched for hours on Google and here and have not found the answer as why the clone doesn't have the branches included in it.</p> <p>If this is not making sense then can you explain a good approach in details. Meaning with git commands of how you would setups an individual developer to be able to work on multiple projects from within their own repository. This would be done to avoid mistakes pushing to the wrong repository.</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.
 

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