Dropbox和Git可能会导致冲突吗? [英] Dropbox and git, could it cause conflicts?

查看:110
本文介绍了Dropbox和Git可能会导致冲突吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果在Dropbox文件夹中托管代码回购,并与其他合作伙伴共享,该怎么办?如果两个人同时推送Dropbox回购,会发生什么?这可能导致冲突,搞砸git吗?

解决方案

Dropbox不是合适的托管服务共享Git存储库。在.git /发生冲突时(以及这种冲突甚至可能发生在未修改的回购中,例如当运行 git gc 时),您可能会遇到各种麻烦。 ),因为.git目录的内容并不容易合并。



您可以使用 https://bitbucket.org 作为提供商,当您不想公开访问回购。


What if one hosts a code repo in the Dropbox folder and shares it with others who collaborate. What happens if two people push to the Dropbox repo at the same time? Could this cause conflicts that mess up git?

解决方案

Dropbox is not the right kind of hosting service to share Git repositories. You can get all kinds of trouble in the moment when a conflict inside .git/ occurs (and such conflicts can even occur in a unchanged repo, for example when one runs git gc), since the content of the .git directory is not designed to be easily merged.

You can use https://bitbucket.org as an provider when you don't want public accessible repos.

这篇关于Dropbox和Git可能会导致冲突吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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