TIL - 2023-04-12 // Create and checkout new branch in git

Create and checkout a new git branch using the checkout command and -b option

The git checkout command is used to checkout a branch. Using -b option allows you to create a new branch in the process.

Practical usage:

git checkout -b new_branch_name