Imagine working on the same code base in two disconnected networks. How would you synchronize your repositories using rudimentary storage device, like a USB-stick?
Undeniably for such a synchronization there could be multiple solutions starting with very primitive manual copying of cloned repositories finishing with some specialized devices and synch processes.
I came up with something intermediate, until the situation with the setup of project changes.
Idea is very simple:
1. USB-sharing device, so that USB-stick can be shared with a press of a button (physical in this case)
2. git bash script that does the following:
3. A task to trigger the synch script when USB-stick with bundle is connected (I do not have this one yet, but it is a next logical step)
If two repositories were available at the same time the same script (with modifications) could be used to synchronize them on schedule or trigger event.
Here is the code of the script:
I also make it available on github under MIT license. Hopefully it comes in handy.
code
more code
~~~~