如何在两个标签之间创建补丁,并在它们之间进行多次提交? [英] How to create patch between two tags with multiple commits between them?
本文介绍了如何在两个标签之间创建补丁,并在它们之间进行多次提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在同一分支的git中有两个标签。他们之间至少有5-6次提交。如何在两个标签之间创建一个补丁,以便将其应用于GitHub repo?
您可以创建在两个标签之间使用下面的单个差异(补丁): $ git diff tag1 tag2 - > the-patch.diff
替换 tag1
和 tag2
到您想要的标签。
I have two tags in my git in same branch. There are at least 5-6 commits between them. How can I create a single patch between the two tags so that it can be applied to a GitHub repo?
解决方案
You can create a single diff (patch) between two tags using the following
$ git diff tag1 tag2 -- > the-patch.diff
Replace tag1
and tag2
to the tags you want.
这篇关于如何在两个标签之间创建补丁,并在它们之间进行多次提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文