git checkout -b <branchname> <commit>
Creates and switches to a new branch from a specific commit
This command creates a new branch named <branchname>
and checks it out. The new branch will be created based on the <commit>
specified.
This allows you to go back in time to a specific commit and start a new branch from that point.
Specific examples:
git checkout -b feature-1234 some-branch
Sign in to enable bookmarking, reminders, progress-tracking and more...
Related
git checkout -b <branchname>
git checkout -b <branchname1> <remote>/<branchname2>
git checkout <branchname>
git checkout -
git checkout --<pathname>
git checkout HEAD <pathname>
git checkout --ours <pathname>
git checkout --theirs <pathname>
git checkout -m <branchname>
git checkout --orphan <branchname>
git checkout -t <remote>/<branchname>