'Syncing code across multiple computers, with minimum effort

I would like to be able to sync source code and entire projects across multiple computers(3 to be precise). I have tried using git, but have never been able to get a hassle free experience, maybe because I've never put a lot of effort into it. So, what I want ideally is:

  • Ability to add a folder with all its subfolders to the 'sync' list. Basically once I add a folder for sync, it should automatically add all files and sync them on multiple computers, just like dropbox.
  • As little manual work as possible. I do not want to push multiple files and go through setup each time I create a new project.
  • Version control is not one of my concerns, but is welcome.

Now, if you suggest that I use git/svn, refer to my points above so as to show my how it is useful for me. Although I don't want to spend a lot of time doing the sync part, I will if it is worth the effort.

I dont think this matters, but I use Eclipse, Aptana and Visual Studio 2010.



Solution 1:[1]

I had (nearly) the same situation. I ended up with a standard windows share on one (so called "master") computer and using the shared folders as network drive with "offline files".

Even if you are disconnected, you have the contents of your files available, if you are connected in same network than your "master" syncing is done automatically.

Conflicts are reported and must be resolved manually.

However, no versioning at all, and windows only.

Solution 2:[2]

Have you tried http://www.sugarsync.com

Its like dropbox but you can map any folder on one computer to any folder on another computer (or multiple computers). It's free but does not work on Linux, only Windows and Mac OS X.

Solution 3:[3]

You might want to check into the bi-directional synchronizer Unison

Solution 4:[4]

2022 Update

I am very happy with using mirror. Setup isn't too easy, but once it works, it is painless.

Solution 5:[5]

I am using Google Drive.

  1. Install Google Drive on all devices
  2. Move the projects that you want to auto-sync to a folder in your Google Drive.
  3. From your Google Drive disk on your computer, right-click on the folder in step 2, making it offline accessible

enter image description here

Solution 6:[6]

Github offers codespaces, which allows you to work on a remote environment through your browser or vscode along with development tools like make, cmake etc. The downside can be high latency for some regions.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Peter Parker
Solution 2 Justin
Solution 3
Solution 4 Julian Pieles
Solution 5 Giangimgs
Solution 6 cmd3BOT