Git:通过邮件保持项目同步

标签 git

我正在我的个人电脑(Macbook)上开发一个项目。我正在使用 git 对其进行版本控制。

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

那么,有什么方法可以使用电子邮件作为同步工具来使用 git 吗?

谢谢

最佳答案

您还应该查看 git-bundle .来自帮助:

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.

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

Git Magic也有一些示例用法。

关于Git:通过邮件保持项目同步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2175961/

相关文章:

git - 无法符号链接(symbolic link)到 .git 目录

git - 存储库的 ssh key - 无法建立。 ECDSA key 指纹

git - Jenkins 作业通知失败,显示 "No git consumers for URI ..."

git - 我怎样才能让 Jenkins Gerrit 触发器忽略我的 CI 用户的提交?

git - 用本地仓库替换远程仓库,但保留远程仓库的提交历史

Git - 如果我有 sha,查看与以前版本差异的最简单方法

git - 按名称找到交换文件

visual-studio-2010 - 如何设置我的 git 存储库以便能够轻松地在 Visual Studio 中重用项目

git - 意外推送提交 : change git commit message

git - 如何在GIT和SVN之间进行双向同步