In the previous section you learned how to create a branch. In this section you will learn more about why branching is important and how to switch between existing branches.
Figure FigureΒ 3.3.1 illustrates this idea by showing what what will happen when you switch to your feature branch and your Local Files have not been modified since the last commit on the main branch (drawn in green).
Diagram showing that the result of the git switch command is that the feature branch is now the active branch. The state of the local files is the same as the last commit in the main branch and there is no new commit yet on the feature branch.
As you saw in SectionΒ 3.2Β Creating a Feature Branch, the git branch <name> command creates a branch (among other uses), but it does not change your active branch. The git switch <name> command switches (i.e. changes) the active branch.
Assuming you are on the main branch, drag the steps that will make your feature branch the active branch and verify you are on your feature branch. Some steps may not be used.