{"thread":{"id":"46725","subject":"clone repo & history to disconnected server","startedAt":"2017-09-07T16:50:24Z","lastAt":"2017-09-07T21:01:15Z","messageCount":3,"participants":["Kermit Short","Stefan Beller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"327720","messageId":"CABjWGHx5VQaLubeWsqWJzufDU3vt9BSS0=LpwgOtMDYhje=qMA@mail.gmail.com","threadId":"46725","inReplyTo":null,"subject":"clone repo & history to disconnected server","fromName":"Kermit Short","fromEmail":"heraldstorm@gmail.com","sentAt":"2017-09-07T16:50:12Z","receivedAt":"2017-09-07T16:50:24Z","isPatch":false,"sender":{"key":"heraldstorm@gmail.com","avatar":null},"body":"Greetings!\nI have to set up a workflow where I'll be developing and testing on\none network, and then deploying to production on a disconnected\nnetwork. I'd like to be able to have the full commit history for all\nbranches, tags, etc. on the disconnected side, in case I need to\nperform a roll-back, create a hot-fix, etc.\n\n\nMost of the solutions I see involve creating a mirror clone that is\nthen merged with a different repository. My problem is that my servers\nare on two separate networks and I am unable to talk to both repos\nfrom the same computer. I'd need to be able to transport the files\nusing sneaker net prior to importing on the second repo. I need to\nkeep the production repo in full working sanity...i.e. import only new\nchanges or completely overwrite the repository such that the full\nproject history is intact and working.\n\n\nDoes anyone have any suggestions? I've been looking at the archive\ncommand but I'm not sure it would bring out the full project history.\nThanks in advance for your help!!\n"},{"id":"327729","messageId":"CAGZ79kYaOKPRGXE8sc74uXQ__iGY1wZqFhyQeXBRAiGH=ujYLQ@mail.gmail.com","threadId":"46725","inReplyTo":"CABjWGHx5VQaLubeWsqWJzufDU3vt9BSS0=LpwgOtMDYhje=qMA@mail.gmail.com","subject":"Re: clone repo & history to disconnected server","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2017-09-07T19:35:16Z","receivedAt":"2017-09-07T19:35:37Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Thu, Sep 7, 2017 at 9:50 AM, Kermit Short <heraldstorm@gmail.com> wrote:\n> Greetings!\n> I have to set up a workflow where I'll be developing and testing on\n> one network, and then deploying to production on a disconnected\n> network. I'd like to be able to have the full commit history for all\n> branches, tags, etc. on the disconnected side, in case I need to\n> perform a roll-back, create a hot-fix, etc.\n>\n>\n> Most of the solutions I see involve creating a mirror clone that is\n> then merged with a different repository. My problem is that my servers\n> are on two separate networks and I am unable to talk to both repos\n> from the same computer. I'd need to be able to transport the files\n> using sneaker net prior to importing on the second repo. I need to\n> keep the production repo in full working sanity...i.e. import only new\n> changes or completely overwrite the repository such that the full\n> project history is intact and working.\n>\n>\n> Does anyone have any suggestions? I've been looking at the archive\n> command but I'm not sure it would bring out the full project history.\n> Thanks in advance for your help!!\n\nCheckout https://git-scm.com/docs/git-bundle\n"},{"id":"327733","messageId":"CABjWGHxb43_Hy+_gQ_tV_DQvs82_ehtwq-c7ZZzQrHJPk4M5uQ@mail.gmail.com","threadId":"46725","inReplyTo":"CAGZ79kYaOKPRGXE8sc74uXQ__iGY1wZqFhyQeXBRAiGH=ujYLQ@mail.gmail.com","subject":"Re: clone repo & history to disconnected server","fromName":"Kermit Short","fromEmail":"heraldstorm@gmail.com","sentAt":"2017-09-07T21:01:04Z","receivedAt":"2017-09-07T21:01:15Z","isPatch":false,"sender":{"key":"heraldstorm@gmail.com","avatar":null},"body":"OK apologies for not reading the docs thoroughly enough, and thank\nyou!!  This looks to be exactly what I need.\n\nOn Thu, Sep 7, 2017 at 1:35 PM, Stefan Beller <sbeller@google.com> wrote:\n> On Thu, Sep 7, 2017 at 9:50 AM, Kermit Short <heraldstorm@gmail.com> wrote:\n>> Greetings!\n>> I have to set up a workflow where I'll be developing and testing on\n>> one network, and then deploying to production on a disconnected\n>> network. I'd like to be able to have the full commit history for all\n>> branches, tags, etc. on the disconnected side, in case I need to\n>> perform a roll-back, create a hot-fix, etc.\n>>\n>>\n>> Most of the solutions I see involve creating a mirror clone that is\n>> then merged with a different repository. My problem is that my servers\n>> are on two separate networks and I am unable to talk to both repos\n>> from the same computer. I'd need to be able to transport the files\n>> using sneaker net prior to importing on the second repo. I need to\n>> keep the production repo in full working sanity...i.e. import only new\n>> changes or completely overwrite the repository such that the full\n>> project history is intact and working.\n>>\n>>\n>> Does anyone have any suggestions? I've been looking at the archive\n>> command but I'm not sure it would bring out the full project history.\n>> Thanks in advance for your help!!\n>\n> Checkout https://git-scm.com/docs/git-bundle\n"}]}