问题描述
我正在使用git存储库开发一个项目,我想导出最近完成的更改并通过电子邮件发送。
I'm working on a project with a git repository, and I want to export the last changes I have done and send it by e-mail.
我需要知道制作 git包和制作 .patch 文件的区别,还有哪些更好?
I need to know the difference between making a git bundle and making a .patch file, and what is better?
我使用的是Tortoise Git,它给了我创建 .patch 文件的选项,它不会给我创建 git bundle 的选项,这个意味着 .patch 文件更好?
I'm using Tortoise Git, and it give me the option to create the .patch file, and it does not give me the option of creating the git bundle, this means that the .patch file is better?
谢谢
Thanks
推荐答案
将取决于另一个包并应用于其他包以前创建。
An incremental bundle would depend on and be applied to another bundle previously created.
但是一个补丁可以应用于任何回购。
在你的情况下,一个补丁是正确的选择(类似于命令)。
您无需依赖先前的补丁,因为您的补丁可以应用于远程回购。
But a patch can be applied on any repo.
In your case, a patch is the right choice (similar to the command git format-patch
).
You don't need to depend on previous patches, for your patch to be applied on a remote repo.
这篇关于git包和.patch之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!