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.
(b)
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?
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.