Explore Courses Blog Tutorials Interview Questions
+1 vote
in DevOps and Agile by (29.3k points)
edited by

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?

2 Answers

+1 vote
by (50.2k points)

There is a command which helps you to create a new branch using tag

git checkout -b newbranch v1.0

This command will help you to create a new branch.

+1 vote
by (27.5k points)

Hey, just adding another way of doing what @chandra is asking, which is simple way to create a new branch (Note that this command will not immediately be changing to the newbranch)

$ git branch newbranch v1.0

Browse Categories