Incremental sync of 2 repositories on different networks

In my setup, I have a Git repository that I work on. On another network (with no access to my main network), I have another Git repository that is read only that I want to keep synced up with the main repository. I’d like to do this occasionally to make sure that the closed repository is up to date with the main. I would also like to avoid having to send a full clone of the repository every time I want to update the closed repository.

Previously, I would use Subversion’s svnadmin dump and restore commands to do this incremental updating of the closed repository, but unsure how to do it with Git?

Are there Git commands, or ideally a Git UI, that allow me to do this?

Is Git patching the preferred way to do this?

  • How to manage IDE files in a git repository?
  • Jenkins How can i upload a text file and use it as a parameter
  • Change Revision Number in Subversion, even if the File not change in the commit
  • Branch/change not merged, though Gerrit claims, it is
  • git workflow: maintaining a history of functional commits
  • Git: checking out a file from a previous commit and amending it to HEAD
  • I have git repo with one branch: master. How do I rename the branch locally and on the remote repo?
  • A good version control application
  • One Solution collect form web for “Incremental sync of 2 repositories on different networks”

    I suspect in your case I would simply occasionally connect my laptop to the ‘other’ network and push branches from my local clone. However, you might want to look into git bundle which basically allows push/pull via sneaker-net. You can create a bundle file containing a set of commits (eg: git bundle create update.bundle last-update-tag HEAD) then take this bundle to your non-networked device and you can pull it (git pull update.bundle). Quite useful for USB stick transfers.

    Git Baby is a git and github fan, let's start git clone.