Sobes.tech
Middle

Do you remember how to create a branch in Git?

sobes.tech AI

Answer from AI

To create a branch in Git, use the command:

git branch branch_name

After creating the branch, you can switch to it with the command:

git checkout branch_name

Or combine creation and switching into one command:

git checkout -b branch_name

This will create a new branch and immediately switch to it for further work.