# clone repo & history to disconnected server

3 messages from 2017-09-07 to 2017-09-07. Participants: Kermit Short, Stefan Beller.
Thread: https://gitlist.dev/t/46725

## Kermit Short, 2017-09-07 16:50

Subject: clone repo & history to disconnected server
Message-ID: <CABjWGHx5VQaLubeWsqWJzufDU3vt9BSS0=LpwgOtMDYhje=qMA@mail.gmail.com>
URL: https://gitlist.dev/e/CABjWGHx5VQaLubeWsqWJzufDU3vt9BSS0%3DLpwgOtMDYhje%3DqMA%40mail.gmail.com

```
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, 2017-09-07 19:35

Subject: Re: clone repo & history to disconnected server
Message-ID: <CAGZ79kYaOKPRGXE8sc74uXQ__iGY1wZqFhyQeXBRAiGH=ujYLQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAGZ79kYaOKPRGXE8sc74uXQ__iGY1wZqFhyQeXBRAiGH%3DujYLQ%40mail.gmail.com
In-Reply-To: <CABjWGHx5VQaLubeWsqWJzufDU3vt9BSS0=LpwgOtMDYhje=qMA@mail.gmail.com>

```
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

```

## Kermit Short, 2017-09-07 21:01

Subject: Re: clone repo & history to disconnected server
Message-ID: <CABjWGHxb43_Hy+_gQ_tV_DQvs82_ehtwq-c7ZZzQrHJPk4M5uQ@mail.gmail.com>
URL: https://gitlist.dev/e/CABjWGHxb43_Hy%2B_gQ_tV_DQvs82_ehtwq-c7ZZzQrHJPk4M5uQ%40mail.gmail.com
In-Reply-To: <CAGZ79kYaOKPRGXE8sc74uXQ__iGY1wZqFhyQeXBRAiGH=ujYLQ@mail.gmail.com>

```
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:
> 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

```
