threads / discuss / 46725

clone repo & history to disconnected server

Subject: clone repo & history to disconnected server

## tl;dr

3 messages between Sep 7, 2017 and Sep 7, 2017.

replies: 2people: 2as markdown or json

Kermit Short· Sep 7, 2017, 16:50 UTC · lore

Greetings! I have to set up a workflow where I'll be developing and testing on one network, and then deploying to production on a disconnected network. I'd like to be able to have the full commit history for all branches, tags, etc. on the disconnected side, in case I need to perform a roll-back, create a hot-fix, etc.

Most of the solutions I see involve creating a mirror clone that is then merged with a different repository. My problem is that my servers are on two separate networks and I am unable to talk to both repos from the same computer. I'd need to be able to transport the files using sneaker net prior to importing on the second repo. I need to keep the production repo in full working sanity...i.e. import only new changes or completely overwrite the repository such that the full project history is intact and working.

Does anyone have any suggestions? I've been looking at the archive command but I'm not sure it would bring out the full project history. Thanks in advance for your help!!

Stefan Beller· Sep 7, 2017, 19:35 UTC · re: Kermit Short · lore

Re: clone repo & history to disconnected server

On Thu, Sep 7, 2017 at 9:50 AM, Kermit Short <heraldstorm@gmail.com> wrote:
Show 21 quoted lines
> Greetings!
> I have to set up a workflow where I'll be developing and testing on
> one network, and then deploying to production on a disconnected
> network. I'd like to be able to have the full commit history for all
> branches, tags, etc. on the disconnected side, in case I need to
> perform a roll-back, create a hot-fix, etc.
>
>
> Most of the solutions I see involve creating a mirror clone that is
> then merged with a different repository. My problem is that my servers
> are on two separate networks and I am unable to talk to both repos
> from the same computer. I'd need to be able to transport the files
> using sneaker net prior to importing on the second repo. I need to
> keep the production repo in full working sanity...i.e. import only new
> changes or completely overwrite the repository such that the full
> project history is intact and working.
>
>
> Does anyone have any suggestions? I've been looking at the archive
> command but I'm not sure it would bring out the full project history.
> Thanks in advance for your help!!
Checkout https://git-scm.com/docs/git-bundle
Kermit Short· Sep 7, 2017, 21:01 UTC · re: Stefan Beller · lore

Re: clone repo & history to disconnected server

OK apologies for not reading the docs thoroughly enough, and thank you!! This looks to be exactly what I need.

On Thu, Sep 7, 2017 at 1:35 PM, Stefan Beller <sbeller@google.com> wrote:
Show 24 quoted lines
> On Thu, Sep 7, 2017 at 9:50 AM, Kermit Short <heraldstorm@gmail.com> wrote:
>> Greetings!
>> I have to set up a workflow where I'll be developing and testing on
>> one network, and then deploying to production on a disconnected
>> network. I'd like to be able to have the full commit history for all
>> branches, tags, etc. on the disconnected side, in case I need to
>> perform a roll-back, create a hot-fix, etc.
>>
>>
>> Most of the solutions I see involve creating a mirror clone that is
>> then merged with a different repository. My problem is that my servers
>> are on two separate networks and I am unable to talk to both repos
>> from the same computer. I'd need to be able to transport the files
>> using sneaker net prior to importing on the second repo. I need to
>> keep the production repo in full working sanity...i.e. import only new
>> changes or completely overwrite the repository such that the full
>> project history is intact and working.
>>
>>
>> Does anyone have any suggestions? I've been looking at the archive
>> command but I'm not sure it would bring out the full project history.
>> Thanks in advance for your help!!
>
> Checkout https://git-scm.com/docs/git-bundle

← back to recent threads