Working on a branch
A branch is a line of work that does not touch main until you say so.
git switch -c feature/login-form
Create and switch
Which command creates a branch and moves you onto it?
git branch feature
git switch -c feature
git checkout main
Before you branch
Tick each one you have done.
I pulled the latest main
My branch name says what the change is
Submit Answer
Your turn
Write the command.
Code Template:
# create a branch named docs/readme and switch to it
Submit Answer