Development environment with Git + Unison

Does anyone use Unison ( http://www.cis.upenn.edu/~bcpierce/unison/ ) to make development projects match between laptop and desktop or similar?

I'm worried that Unison might destroy my git repos. Given MyProject, with a laptop checked out on somebranch and a desktop checked out on someotherbranch, would Unison do the right thing on sync? I don't care which branch wins as long as the repositories remain viable.

Other suggestions are welcome. Rsync is backed up if nothing else works.

+3


source to share


2 answers


Yes, I regularly use Unison to keep all my projects in sync, including bzr and git repos. It works fine. The result will be the same as pushing your git repository somewhere and then pulling it out again, but if you're already using Unison, it eliminates those extra steps if you just sync the repositories. Synchronization also grabs your uncommitted changes, which push + pull won't do.



The only problem I see is if your Unison profile has some ignore functionality that prevents all objects in the git repository from being synchronized. I think it would be unusual, but it never happened to me.

+1


source


I also use Unison and it works great for me. The only real problem I am facing is with case sensitivity. I have installed Unison on my Linux machine and on my MacOSX to sync files between the two. MacOSX uses a case-insensitive file system by default, so I had some conflicts. The workaround was to create a read / write disk image with Disk Utility and use this newly created volume as the main working directory for git-repos.



0


source







All Articles