gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 12:56:25 24 4
gpt4 key购买 nike

我正在我的个人电脑(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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com