1.
(a)
Git will not allow you to delete the active branch. So typically you will switch to the
main
branch before deleting a feature branch.Choose and order the commands below to switch from your feature branch to the
main
branch and then list all of the branches in your local repository. Not all commands will be used.Hint.
You will need two commands, the first one to make the
main
branch active and the second to list the local branches.(b)
main
an * next to it.main
appears in green.main
appears in bold.main
appears in italics.- It is not possible to tell that
main
is the active branch based upon the output.
Run the commands you identified in Task 4.6.1.1.a in the terminal.
How can you tell from the output provided that your
main
branch is currently active?Hint.
The output should clearly indicate that
main
is the active branch in several ways.