[Git] Create and check out a branch at a specific commit

Created on November 30, 2026

Use git checkout -b with a branch name and a starting commit. This example creates new-my-branch at commit abc1234 and checks out the new branch.

git checkout -b new-my-branch abc1234
Git