简体   繁体   English

合并分支开发带有标签的主分支

[英]Merge branch Develop to branch Master with tag

I have the branches on a GIT repository: 我在GIT信息库上有分支:

develop > with 8 commits
master > with 4 commits

And I have one tag just created: 我刚刚创建了一个标签:

1.0.0

I would to merge develop branch with master branch and associate the action with tag 1.0.0. 我将合并开发分支与主分支,并将动作与标签1.0.0关联。

I am trying to release to production by merging develop to master with version 1.0.0 tag. 我正在尝试通过合并1.0.0版标记的开发大师来发布产品。

How can I do this? 我怎样才能做到这一点?

Tags are associated with a specific commit so you can't create a new merge commit and associate it with an existing tag. 标签与特定的提交相关联,因此您无法创建新的合并提交并将其与现有标签相关联。 You can however delete the tag and then re-create it on the new commit, or you can just use 1.0.1 但是,您可以删除标签,然后在新提交时重新创建它,也可以只使用1.0.1

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

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