Github存储库已克隆到多台计算机上的同步iCloud驱动器 [英] Github repo cloned to synced iCloud drive on multiple computers

查看:84
本文介绍了Github存储库已克隆到多台计算机上的同步iCloud驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几台Mac,我在其中克隆了很多git(主要是GitHub)存储库.每个Mac都有多个iCloud驱动器同步目录(实际上,我已经全力以赴,正在同步DesktopDocuments).

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).

我试图克隆到iCloud同步的目录中.但是,我一直对此有很多问题.似乎很容易陷入iCloud(而非git)如此混乱的境地,以至一台计算机有效地停止同步,即使与克隆目录无关的文件也是如此,即使我仔细地重新同步了两个克隆中的每一个到完全相同的状态.我不知道问题出在.git/下的文件还是实际回购文件版本之间的竞争状况.

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.

我尝试在brctl下使用Apple的各种iCloud日志记录工具,但这通常无济于事.

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

有没有其他人看到过这个或类似的东西?

Has anyone else seen this or anything like it?

(这与此问题多数情况下,它似乎只关心一台配备iCloud驱动器的Mac,而且我认为这种情况下的用户不会看到与我相同的问题.)

(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.)

推荐答案

我发现icloud和git不能很好地配合使用. icloud会将点文件粘贴到任何地方,如果您正在使用巨大的node_modules目录执行节点操作,那将很疯狂.它将还原旧文件,而您的仓库就是git函数,它基本上可以与随机备份和同步icloud所做的任何事情竞争.

I have found the icloud and git do NOT play well together. icloud sticks dot files everywhere and if you're doing node with giant node_modules directories it makes for madness. It will restore old files and your repo is git functions are basically competing with whatever random backup and syncing icloud is doing.

我的课程是不要在icloud备份的任何地方放置任何存储库.此外,如果您在其他地方有git或bitbucket(或远程git)帐户,则是多余的,因为根据定义,此仓库可以以版本化的方式恢复.

My lesson is to NOT put any repos in any place that icloud is backing it up. Besides it's redundant if you have a git or bitbucket (or remote git) account elsewhere, since then by definition the repo is the restorable in a versioned way.

这篇关于Github存储库已克隆到多台计算机上的同步iCloud驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆