3

I have upgraded some of my Macs to Sierra. Now, I'm wondering whether I want to enable iCloud on the Document folder or not. It seems useful if it works well. I'm syncing some of the PDF files between iPad over iCloud, and my experience was "so-so" compared with Dropbox based sync (I'm using PDF expert on iPad).

I'm particularly interested in how git repository work (or not work) well on the iCloud drive -- I have multiple Macs; I know the iCloud drive is slow in sync.

Do you have any experience or recommendation on this?

1

I imagine you'll to face the same issues as with Dropbox, when all the little files in the GIT repo are updated with every commit. I understand that the iCloud sync kicks in periodically, so you then depend on how reliable or quick it is (and it seems it can be variable). With Dropbox, I've found this can slow things up while the files are synced and even mess up a repo.

I keep most of my repos in ~/Projects - after all, you can always pull and push (if your remote is on GitHub/BitBucket/etc.) from any machine. If you think it's worth trying, this blog post from 2014 suggests setting up a bare repo in iCloud.

Overall, though, reading around suggests that we "use a dedicated service for git repos designed to store git repos". The aims of GIT and those of iCloud, Dropbox, etc. don't always play nicely with each other, especially if your connection is interrupted or the iCloud service is slow for some reason.

1

I have had bad experiences with this, although specifically in the case of multiple macs syncing the same cloned repo.

I have a couple of Macs onto which I clone a fair number of git (mostly GitHub) repos. The Macs each have a number of iCloud drive synced directories (in fact I've gone all-in and am syncing Desktop and Documents).

I have tried to clone into the iCloud-synced directories. However, I have been having lots of problems with this. It seems very easy to get into a condition where iCloud (not git) gets so confused that one machine effectively stops syncing, even files that have nothing to do with the cloned directories, and even if I carefully re-sync each of the two clones to the exact same state. I don't know if the problem is files under .git/ or just something like race conditions between versions of the actual repo files.

I've tried to use Apple's various iCloud logging tools under brctl but that has generally not helped.

(Most of this has been posted as a question over on the main SO site: has anyone else seen this or anything like it?)

(This is somewhat different from this question which mostly seems to care about a single Mac with iCloud drive, and I don't think users in that situation would see the same issues that I am.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .