在不同的机器上使用Git和Dropbox不会出现问题? [英] Using Git and Dropbox on different machines without Problems?

查看:88
本文介绍了在不同的机器上使用Git和Dropbox不会出现问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经找到了一些与此类似的主题,但是并不完全相同.

I already found some similar topics to this, but it wasn't exactly the same.

我正在使用三台不同的机器进行网页设计项目

I am working on webdesign projects on three different machines

  1. Office Windows PC
  2. 家用Windows PC
  3. MacBook

我保持整个Project-Folder同步槽DropBox.这非常有效,我会确保保持下去.我没有与DropBox的任何人共享任何项目.

I keep my whole Project-Folder synchronized trough DropBox. This works very well and I'll keep that for sure. I don't share any projects with other persons with DropBox.

现在,我想使用Git进行版本控制,并与其他人在代码项目上进行协作.我仍然在所有三台机器上工作,但是实际上这三台机器仍然算作"一个人",并且是git存储库中的一个贡献者,因为它就是我.

Now I'd like to use Git for version controlling and to collaborate on code projects with other persons. I still work on all three machines, but actually this three machines still count as "one person" and only one contributor to a git repository, because it's just me.

我有一个BitBucket帐户,并创建了一个用于测试提议的新回购协议:

I have a BitBucket Account and created a new repo for testing proposes:

  1. 我将存储库克隆到其中一台计算机上
  2. DropBox自动将文件夹同步到下一台计算机
  3. 我试图从第二台计算机上的BitBucket克隆存储库,但无法做到这一点,因为该文件夹已经存在并且不为空.
  1. I cloned the repo to one of the machines
  2. DropBox automatically synched the folder to the next machine
  3. I tried to clone the repo from BitBucket on the second machine, but wasn't able to do that, because the folder already existed and wasn't empty.

由于项目文件夹在每台计算机上都位于不同的位置,所以我怀疑它是否可以正常工作. .git文件中是否存储有任何与路径有关的信息?

As the project-folder is in a different location on every machine, I somehow doubt this to work. Is there any path-related informations stored inside the .git files?

从技术上讲,如果我的三个本地git存储库由DropBox完美同步,则应该"起作用.然后我有时会推送到BitBucket上的主存储库.还是我不可能使用Git?

I think technically, it "should" work if my three local git repos are perfectly synched by DropBox. And then I sometimes push to the master repo on BitBucket. Or is it impossible for me to use Git?

我不想在我的保管箱内放置一个git master仓库或类似的东西.我只希望所有本地项目在不同计算机之间同步,并且仍然将更改推送到位存储库中.永远不会同时推两个人,因为只有我一个人.

I do not want to have a git master repo inside my dropbox or anything like that. I just want all my local projects synchronized between different machines and still push changes to a bitbucket repo. There would never push two person at the same time, because its just me.

预先感谢

罗伯特

推荐答案

我建议您只使用BitBucket.您只需要在那里存放主存储库,然后从BitBucket推拉到您的三台机器.

I would advice you to just use BitBucket. You could simply have your master repo there, and push and pull from BitBucket to your three machines.

在我看来,将DropBox添加到混合中几乎没有任何优势,但是却增加了很多复杂性.只要DropBox可以同步,就可以访问BitBucket.

It seems to me that adding DropBox to the mix gives almost no advantage, but adds a lot of complexity. Whenever DropBox can synchronize, you could just as well reach BitBucket.

这篇关于在不同的机器上使用Git和Dropbox不会出现问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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