Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.4k points)
edited by

I have a Git branch called jzbranch and have an old commit id: a9c146a09505837ec03b.

How do I create a new branch, justin, from the information listed above?

1 Answer

0 votes
by (27.5k points)

To create a new branch called 'justin' and check it out

$ git checkout -b justin a9c146a09505837ec03b

To create the branch without checking it out

$ git branch justin a9c146a09505837ec03b

Browse Categories

...