{"thread":{"id":"26181","subject":"clone --bare vs push","startedAt":"2011-01-03T18:24:14Z","lastAt":"2011-01-04T05:29:27Z","messageCount":5,"participants":["Levend Sayar","Ævar Arnfjörð Bjarmason","Neal Kreitzinger","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"158851","messageId":"AANLkTi=RNDYrRbyEJXA_c30JEVr=SYUQ01cfA3FyWpLT@mail.gmail.com","threadId":"26181","inReplyTo":"AANLkTi=+cRqD_CDFyaYj8uWOxUA1+5Dgr_pv1guaaT40@mail.gmail.com","subject":"clone --bare vs push","fromName":"Levend Sayar","fromEmail":"levendsayar@gmail.com","sentAt":"2011-01-03T18:24:14Z","receivedAt":"2011-01-03T18:24:14Z","isPatch":false,"sender":{"key":"levendsayar@gmail.com","avatar":"https://gravatar.com/avatar/eee5111f431e01d6607dcdce1434e09cd262a451cf27ddab2db11ec0d7197be3?d=mp&s=160"},"body":"Hi, all.\n\nWe cloned a repo from github on our local server. Say X for this. At\nthat repo, we did\n\ngit clone --bare X y.git\n\nNow y.git is ready for other machines to clone.\n\nTo update our upstream repo X, we do\n\ngit pull\n\nand then\n\ngit push --all\n\nto update y.git.\n\nNow questions:\n\n1) When I compare X/.git directory and y.git directory there are many\nobjects missing in y.git. What is the reason ?\n\n2) git clone --bare is too fast. My .git directory is nearly 1GB. How\ncan it be copied that much fast ?\n\n3) Is this more safe then git pull, git push\n\nrm -rf y.git\ngit pull\ngit clone --bare X y.git\n\nNamely bare cloning each time when we update our main repo ?\n\nTIA\n\n_lvnd_\n (^_^)\n"},{"id":"158852","messageId":"AANLkTimsOxfnKHLRMH6JSQbrGKzaOgh_gLuc1gT4JraF@mail.gmail.com","threadId":"26181","inReplyTo":"AANLkTi=RNDYrRbyEJXA_c30JEVr=SYUQ01cfA3FyWpLT@mail.gmail.com","subject":"Re: clone --bare vs push","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2011-01-03T18:41:07Z","receivedAt":"2011-01-03T18:41:07Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Mon, Jan 3, 2011 at 19:24, Levend Sayar <levendsayar@gmail.com> wrote:\n\n> 1) When I compare X/.git directory and y.git directory there are many\n> objects missing in y.git. What is the reason ?\n\nMaybe things were repacked.\n\n> 2) git clone --bare is too fast. My .git directory is nearly 1GB. How\n> can it be copied that much fast ?\n\nIt will use hardlinks when using the same filesystem. See\n--no-hardlinks in git-clone(1).\n"},{"id":"158869","messageId":"ifu8d2$t61$1@dough.gmane.org","threadId":"26181","inReplyTo":"AANLkTi=RNDYrRbyEJXA_c30JEVr=SYUQ01cfA3FyWpLT@mail.gmail.com","subject":"Re: clone --bare vs push","fromName":"Neal Kreitzinger","fromEmail":"neal@rsss.com","sentAt":"2011-01-04T04:40:32Z","receivedAt":"2011-01-04T04:40:32Z","isPatch":false,"sender":{"key":"neal@rsss.com","avatar":null},"body":"\n\"Levend Sayar\" <levendsayar@gmail.com> wrote in message \nnews:AANLkTi=RNDYrRbyEJXA_c30JEVr=SYUQ01cfA3FyWpLT@mail.gmail.com...\n> Hi, all.\n>\n> We cloned a repo from github on our local server. Say X for this. At\n> that repo, we did\n>\n> git clone --bare X y.git\n>\n> Now y.git is ready for other machines to clone.\n>\n> To update our upstream repo X, we do\n>\n> git pull\n>\n> and then\n>\n> git push --all\n>\n> to update y.git.\n>\n> Now questions:\n>\n> 1) When I compare X/.git directory and y.git directory there are many\n> objects missing in y.git. What is the reason ?\n>\n> 2) git clone --bare is too fast. My .git directory is nearly 1GB. How\n> can it be copied that much fast ?\n>\n> 3) Is this more safe then git pull, git push\n>\n> rm -rf y.git\n> git pull\n> git clone --bare X y.git\n>\n> Namely bare cloning each time when we update our main repo ?\n>\n> TIA\n>\n> _lvnd_\n> (^_^)\n\nyou can also use the file:// url format to create a complete copy and not \nuse hardlinks.  see git-clone manpage.\n\ne.g. git clone --bare file:///fullpathto/X y.git\n\nv/r,\nNeal \n"},{"id":"158870","messageId":"20110104045839.GA8225@burratino","threadId":"26181","inReplyTo":"ifu8d2$t61$1@dough.gmane.org","subject":"Re: clone --bare vs push","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2011-01-04T04:58:39Z","receivedAt":"2011-01-04T04:58:39Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Neal Kreitzinger wrote:\n\n> you can also use the file:// url format to create a complete copy and not \n> use hardlinks.  see git-clone manpage.\n> \n> e.g. git clone --bare file:///fullpathto/X y.git\n\nThanks, that's useful; cc-ing Levend.\n\n[Side note: I wrote in the past:\n\n| In traditional newsgroups it seems to be most common to just reply to\n| the author by mail or follow-up to the group, so I wouldn't feel too\n| bad.\n\nbut probably that was unclear of me.  The convention on _this_ list[1] is\nto reply to all participants in a thread, so new participants do not\nneed to subscribe if they don't want to.  Thunderbird (e.g.) seems to\nbe good at doing that for what it's worth.]\n\n[1] at least as I perceive it; please feel free to correct me if I\nhave misunderstood\n"},{"id":"158875","messageId":"4D22B037.9010408@gmail.com","threadId":"26181","inReplyTo":"20110104045839.GA8225@burratino","subject":"Re: clone --bare vs push","fromName":"Neal Kreitzinger","fromEmail":"nkreitzinger@gmail.com","sentAt":"2011-01-04T05:29:27Z","receivedAt":"2011-01-04T05:29:27Z","isPatch":false,"sender":{"key":"nkreitzinger@gmail.com","avatar":null},"body":"On 1/3/2011 10:58 PM, Jonathan Nieder wrote:\n> Neal Kreitzinger wrote:\n>\n>> you can also use the file:// url format to create a complete copy and not\n>> use hardlinks.  see git-clone manpage.\n>>\n>> e.g. git clone --bare file:///fullpathto/X y.git\n>\n> Thanks, that's useful; cc-ing Levend.\n>\n> [Side note: I wrote in the past:\n>\n> | In traditional newsgroups it seems to be most common to just reply to\n> | the author by mail or follow-up to the group, so I wouldn't feel too\n> | bad.\n>\n> but probably that was unclear of me.  The convention on _this_ list[1] is\n> to reply to all participants in a thread, so new participants do not\n> need to subscribe if they don't want to.  Thunderbird (e.g.) seems to\n> be good at doing that for what it's worth.]\n>\n> [1] at least as I perceive it; please feel free to correct me if I\n> have misunderstood\n\nThis is a \"reply all\" from thunderbird.  This looks like it is doing the \ncc correctly...\n\nv/r,\nNeal\n"}]}