Git with Dropbox

戏子无情 提交于 2019-11-26 08:07:09
VonC

If you want to add an intermediate repo container, Dropbox is fine provided:

  1. You use the git bundle format: it generates a bare repo with only one file (meaning Dropbox is more likely to correctly sync it to any of your computers: it is just about copying one file, not "the whole structure" from which you are not sure you will get everything back).

  2. You are using incremental bundle for each of your saves (again, one file per save, easy to pull from on the other side to get back what has been done).
    Name your increment after the source (laptop or desktop) and with the date.
    Basically, you will pull from any xxx.bundle you haven't pulled yet.

  3. You regularly clean all the intermediate incremental bundles, replacing it with a full bundle from whatever source is the most up-to-date

That model allows for:

  • simple sync process (one or very few files)
  • quick saving process (with incremental bundles)
  • scaling: if there is more than one actor, i.e. if several people are updating the same branch, you can isolate their contributions when pulling from them by referencing their bundles using a different remote name (since each bundle is a bare repo from which you can pull).
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!