Git:如何从标签创建新分支? [英] Git: How to create a new branch from a tag?
本文介绍了Git:如何从标签创建新分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
v1.0
,我该如何从这个标签创建一个新的分支? 解决方案
哇,比我想象的要容易:
git checkout -b newbranch v1.0
Something happened and our master branch got all screwed up. Rather than spending the time trying to figure out what went wrong, I just want to create a new master branch from an existing tag. So if my tag is v1.0
, how do I create a new branch from this tag?
解决方案
Wow, that was easier than I thought:
git checkout -b newbranch v1.0
这篇关于Git:如何从标签创建新分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文