{"thread":{"id":"14663","subject":"git newbie - cloning / check out help","startedAt":"2008-07-24T21:24:34Z","lastAt":"2008-07-24T23:55:38Z","messageCount":3,"participants":["Donald Brady","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"84800","messageId":"loom.20080724T211609-298@post.gmane.org","threadId":"14663","inReplyTo":null,"subject":"git newbie - cloning / check out help","fromName":"Donald Brady","fromEmail":"dbrady010@me.com","sentAt":"2008-07-24T21:24:34Z","receivedAt":"2008-07-24T21:24:34Z","isPatch":false,"sender":{"key":"dbrady010@me.com","avatar":null},"body":"I am just ramping up on git and have the following scenario / issue:\n\n  I have a git repository on server A.\n\n  I clone it onto my machine B.\n\n  In my local copy/repository on machine B I clone a repository on some \nthird party server C.\n\n  I commit my changes into B and push them to A.\n\n  Now if I clone my repository from Server A onto my local machine\n in a different location I see all the source as normal but only the top\n level directory of C. Any source under that is not present. \n\nWhat is the magic git incantation to make sure that I check out \nnot only the code from my repository but  any repositories that\nare cloned into it (recursive clone?)\n\nThanks\n\nDonald\n"},{"id":"84802","messageId":"20080724231531.GS32184@machine.or.cz","threadId":"14663","inReplyTo":"loom.20080724T211609-298@post.gmane.org","subject":"Re: git newbie - cloning / check out help","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2008-07-24T23:15:31Z","receivedAt":"2008-07-24T23:15:31Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"  Hi,\n\nOn Thu, Jul 24, 2008 at 09:24:34PM +0000, Donald Brady wrote:\n> I am just ramping up on git and have the following scenario / issue:\n> \n>   I have a git repository on server A.\n> \n>   I clone it onto my machine B.\n> \n>   In my local copy/repository on machine B I clone a repository on some \n> third party server C.\n> \n>   I commit my changes into B and push them to A.\n> \n>   Now if I clone my repository from Server A onto my local machine\n>  in a different location I see all the source as normal but only the top\n>  level directory of C. Any source under that is not present. \n> \n> What is the magic git incantation to make sure that I check out \n> not only the code from my repository but  any repositories that\n> are cloned into it (recursive clone?)\n\n  we call this functionality \"submodules\" and the quickstart howto is:\n\n\tYou have git repository on A\n\n\tYou clone it onto your machine B\n\n\tgit submodule add url directoryC\n\n\tYou commit your changes into B and push them to A\n\n\tYou do another clone of A and then within the clone\n\n\tgit submodule update --init\n\nFor further details, see git-submodule(1).\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nAs in certain cults it is possible to kill a process if you know\nits true name.  -- Ken Thompson and Dennis M. Ritchie\n"},{"id":"84825","messageId":"7E28442B-13FE-41A3-A4A4-F46683495CDC@me.com","threadId":"14663","inReplyTo":"20080724231531.GS32184@machine.or.cz","subject":"Re: git newbie - cloning / check out help","fromName":"Donald Brady","fromEmail":"dbrady010@me.com","sentAt":"2008-07-24T23:55:38Z","receivedAt":"2008-07-24T23:55:38Z","isPatch":false,"sender":{"key":"dbrady010@me.com","avatar":null},"body":"Hi Peter.\n\nI got it working now thanks to your pointer.\n\nDonald\n\nOn Jul 24, 2008, at 4:15 PM, Petr Baudis wrote:\n\n>  Hi,\n>\n> On Thu, Jul 24, 2008 at 09:24:34PM +0000, Donald Brady wrote:\n>> I am just ramping up on git and have the following scenario / issue:\n>>\n>>  I have a git repository on server A.\n>>\n>>  I clone it onto my machine B.\n>>\n>>  In my local copy/repository on machine B I clone a repository on  \n>> some\n>> third party server C.\n>>\n>>  I commit my changes into B and push them to A.\n>>\n>>  Now if I clone my repository from Server A onto my local machine\n>> in a different location I see all the source as normal but only the  \n>> top\n>> level directory of C. Any source under that is not present.\n>>\n>> What is the magic git incantation to make sure that I check out\n>> not only the code from my repository but  any repositories that\n>> are cloned into it (recursive clone?)\n>\n>  we call this functionality \"submodules\" and the quickstart howto is:\n>\n> \tYou have git repository on A\n>\n> \tYou clone it onto your machine B\n>\n> \tgit submodule add url directoryC\n>\n> \tYou commit your changes into B and push them to A\n>\n> \tYou do another clone of A and then within the clone\n>\n> \tgit submodule update --init\n>\n> For further details, see git-submodule(1).\n>\n> -- \n> \t\t\t\tPetr \"Pasky\" Baudis\n> As in certain cults it is possible to kill a process if you know\n> its true name.  -- Ken Thompson and Dennis M. Ritchie\n"}]}