简体   繁体   English

Git仓库标签合并

[英]Git repository tags merging

i need little help regarding git repository. 我需要有关git存储库的帮助。 I have created many tags in repository like v1.2.1 to v1.2.9 than i have made some changes in tag v1.2.4 and push changes and delete old tag and recreate new one with same name using below commands. 我在存储库(如v1.2.1v1.2.9创建了许多标签, v1.2.9不是在标签v1.2.4进行了一些更改,并使用以下命令推送更改并删除了旧标签,并使用相同的名称重新创建了新标签。

git branch v1.2.4-bugfix v1.2.4
git checkout v1.2.4-bugfix
//commit changes
git tag -f v1.2.4
git push origin :v1.2.4
git push origin v1.2.4

Now issue is that how i can merge these changes into other tags like i want these changes in all tags that created after v1.2.4 现在的问题是,我如何将这些更改合并到其他标签中,例如我希望在v1.2.4之后创建的所有标签中进行这些更改

Please help me to figure out the solution. 请帮助我找出解决方案。 thanks 谢谢

Tag is just an alias to a commit. 标记只是提交的别名。
You can check them out, merge and do any other git command which you can do on any of your branches. 您可以检出它们,合并并执行其他git命令,您可以在任何分支上执行该命令。

Its not clear what you want to do. 目前尚不清楚您想做什么。

You have tagged commit with a new tags and now you want to merge this code to all other tags. 您已经用新标签标记了commit,现在您希望将此代码合并到所有其他标签。

On which branches are those tags? 这些标签在哪些分支上? to which branch you want to merge it into? 您要将其合并到哪个分支?

The tag can be on all your branches and you have to merge it to some branch, what will be with the other branches? 标签可以在您所有的分支上,并且您必须将其合并到某个分支,其他分支又将如何?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM