Scott Whittaker

Software Engineer

Day job React | side projects Svelte

Create a branch from a tag in git

A one liner to create a new branch from a point in time using a tag.

git checkout -b <branch-name> <tag-name>

For example, here we create new branch called hotfix/critical-bug from a point in time tagged as v1.1.1.

git checkout -b hotfix/critical-bug v1.1.1