Difference between git bundle and .patch

自古美人都是妖i 提交于 2019-12-18 04:24:18

问题


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.

I need to know the difference between making a git bundle and making a .patch file, and what is better?

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


回答1:


An incremental bundle would depend on and be applied to another bundle previously created.

To bootstrap the process, you can first create a bundle that does not have any basis.
You can use a tag to remember up to what commit you last processed, in order to make it easy to later update the other repository with an incremental bundle:

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.



来源:https://stackoverflow.com/questions/16407490/difference-between-git-bundle-and-patch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!