Git和iCloud Drive可以有效地一起使用吗? [英] Can Git and iCloud Drive be effectively used together?

查看:155
本文介绍了Git和iCloud Drive可以有效地一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题一样,

推荐答案

不,它们不能一起使用。

No, they shouldn’t be used together.


  • 苹果说 您不应在iCloud Drive中存储应用程序文件夹,库或.tmp文件。 .git 是一个应用程序文件夹。

  • git无法避免的iCloud Drive排除的文件名列表。因此,例如,如果您将标签命名为 tmp,则该标签将不会同步。也没有什么可以阻止git修改其内部文件结构,或阻止iCloud Drive修改其排除列表,从而始终会发生此同步失败。

  • iCloud Drive会忽略符号链接,而git不会。因此, git status 可能会在完成iCloud Drive同步的其他计算机上返回不同的结果。

  • Apple says "You shouldn’t store app folders, libraries, or .tmp files in iCloud Drive." .git is an app folder.
  • There is a list of filenames excluded by iCloud Drive that git doesn’t avoid. So, for example, if you name a tag "tmp", that tag won’t be synced. There’s also nothing stopping git modifying its internal file structure, or iCloud Drive modifying its exclusion list, such that this sync failure always occurs.
  • iCloud Drive ignores symlinks, git doesn’t. So, git status may return different results on different computers that iCloud Drive is done syncing.

从广义上讲,git和iCloud Drive是此目录的内容的两种不同的有损实现,一个人不应指望它们等效。

More broadly speaking, git and iCloud Drive are two different lossy implementations of "what are the contents of this directory", one shouldn’t expect them to be equivalent.

这篇关于Git和iCloud Drive可以有效地一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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