How to create a new branch from a tag?

后端 未结 7 2130
不思量自难忘°
不思量自难忘° 2020-12-12 08:56

I\'d like to create a new master branch from an existing tag. Say I have a tag v1.0. How to create a new branch from this tag?

7条回答
  •  时光说笑
    2020-12-12 09:26

    If you simply want to create a new branch without immediately changing to it, you could do the following:

    git branch newbranch v1.0
    

提交回复
热议问题