Git:通过邮件保持项目同步 [英] Git: keeping a project synced via mail

查看:105
本文介绍了Git:通过邮件保持项目同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在个人电脑(Macbook)上开发一个项目。我使用git来版本化。



我有另一台计算机(我在工作中使用的计算机),我想在白天开发同一个项目。我在github上有一个免费帐户,所以我可以用它来保持工作同步家庭和工作开发,但该项目不是公共。

所以,任何使用电子邮件作为同步工具的方式来使用git?



谢谢

解决方案

您还应该查看 git-bundle 。从帮助:


某些工作流程要求在一台机器上开发一个或多个开发分支在另一台机器上复制,但这两台机器不能直接连接,因此不能使用交互式git协议(git,ssh,rsync,http)。该命令通过在源机器的归档文件中打包对象和引用,然后在移动归档文件之后使用`git fetch`和`git pull`将它们导入到另一个存储库中来支持`git fetch`和`git pull`的操作。一些手段(例如,通过sneakernet)。由于存储库之间不存在直接连接,因此用户必须为目标存储库持有的数据包指定基础:数据包假定基础中的所有对象都已存在于目标存储库中。

Bundle是二进制文件,但它们通常很小,因为您不需要包含整个存储库并将它们压缩。



Git Magic 也有一些示例用法。


I'm developing a project on my personal computer (a Macbook). I'm using git to version it.

I have another computer (the one I use at work) where I'd like to develop the same project in daytime. I have a free account at github, so I could use it to keep the work going syncing home and work development, but the project is not "public".

So, any way to work with git using email as syncing tool?

Thanks

解决方案

You should also look into git-bundle. From the help:

Some workflows require that one or more branches of development on one machine be replicated on another machine, but the two machines cannot be directly connected, and therefore the interactive git protocols (git, ssh, rsync, http) cannot be used. This command provides support for `git fetch` and `git pull` to operate by packaging objects and references in an archive at the originating machine, then importing those into another repository using `git fetch` and `git pull` after moving the archive by some means (e.g., by sneakernet). As no direct connection between the repositories exists, the user must specify a basis for the bundle that is held by the destination repository: the bundle assumes that all objects in the basis are already in the destination repository.

Bundles are binary files but they are typically small since you don't need to include the entire repository and they're compressed.

Git Magic has some example usage too.

这篇关于Git:通过邮件保持项目同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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