0

I have a code base that is used on two different networks, A and B, that can no connectivity exists between A.git and B.git. The only way to talk between the networks is by burning a CD.

I have the git code base on both networks, but I am wondering how I can generate a patch to synchronize A.git and B.git. In other words

  • I start off with A.git and B.git being exactly the same
  • I work on my project on A.git
  • I want to get my changes that are on A.git over to B.git
  • What file/output could I produce on A.git and feed into B.git to make B.git exactly the same as A.git?

Please supply the commands needed to make this happen.

E.S.
  • 2,301
  • 6
  • 26
  • 52
  • Can you use a memory stick to move stuff around? Then you could set up a bare repo on a stick and use it as a remote of the repos on the separate networks. – eftshift0 Oct 10 '18 at 02:23
  • No, not an option for security reasons. I hope I wasn't voted down for that reason? – E.S. Oct 10 '18 at 02:33
  • Use [`git bundle`](https://stackoverflow.com/a/49101839/7976758). – phd Oct 10 '18 at 03:56

1 Answers1

3

You can either:

In both case, you would have to copy somehow only one file, which will then act as your remote repo (meaning, once copied over, you can pull from it)

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283