4

Supposing I have to work in an isolated subnetwork without connection to source repo. As start of development, I can do "git clone" in somewhere where has connection and then copy over ".git" directory by USB stick.

Then I can use this ".git" directory for local branching, committing etc. Then at some point, I need to contribute back my changes to source repo, i.e., I need to do "push" now. What is the best way to push to source repo by means of USB stick transport method? Ideally I would want to move a whole branch back to repo.

M2014
  • 1,094
  • 1
  • 9
  • 16
  • maybe this can help you: https://git-scm.com/docs/git-format-patch – danilo Feb 02 '18 at 17:20
  • you can send commits by email – danilo Feb 02 '18 at 17:20
  • 4
    [git bundle](https://www.git-scm.com/docs/git-bundle) – user4003407 Feb 02 '18 at 17:20
  • Will you then have access to the private subnetwork again ? Do you have contact with somebody that has access ? If anybody, you or a contact has access to this network + the USB stick, She can push to the isolated network things that were committed locally on the USB stick – log0 Feb 02 '18 at 17:23
  • This(git bundle) is the answer. Git is really powerful, thanks to Linus. – M2014 Feb 02 '18 at 17:36
  • A very good reading about this topic, https://git-scm.com/blog/2010/03/10/bundles.html – M2014 Feb 02 '18 at 17:54

0 Answers0