简体   繁体   中英

Syncing my git repos across Mac and Linux box for continuous build

I am looking for a way to sync my git repositories from my Mac to an Intel NUC box I have running Ubuntu. The reason I want to do this is to take the load off my Mac for builds, and just have my Ubuntu box do this when it receives a change to one of the repos. Also, I'd like it to be automatic so that i can play about with Gradles continuous build feature. Has anyone done anything like this, or is this possible? I've been looking into rsync and thinking this is the way to go, but was looking other inputs.

That's the basic functionality of version control, you can have the same copy of repo on any number of machines.

You can clone your repository on any other machine (linux, window or another mac). Then run a cron job to pull latest changes on new machine periodically.

I really love this tool - Syncthing

  1. Download binaries for your systems
  2. Run on both machines (just execute one file)
  3. Connect machines to each other
  4. Add desired folders to be synchronized

I am trying something similar, unison is a nice alternative.

The latest version comes with a repeat configuration option that allows you to run it as a service. Doesn't have all the bells and whistles of a gui, but is basically similar to bidirectional rsync with conflict management.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM