1. Use git branch to view your current branch
git branch
  1. Rename the master branch to main
git branch -m oldname newname
  1. Create a new branch called “add_classics”
git branch my_new_branch
  1. Switch to the new branch
git switch my_new_branch
  1. Verify that you are in the new branch
git branch
  1. Add a new file called classics.md and put these contents
Friends 
The Sopranos 
Breaking Bad 
I Love Lucy
The Simpsons
  1. Stage and commit the changes starting with the commit messages “C: ”
  2. Use git log on your new branch
  3. Switch back to the main branch
  4. Use git log on the main branch

The actions described in 3, 4 can be done using git switch -c my_new_branch