5- I messed up! How can discard ALL changes since my last commit?
git reset --hard
6- How do I switch between EXISTING branches?
git checkout somebranch
7- How do I create a NEW branch off of my current branch and move to it?
git checkout -b thenewbranch
8- How do I cut & paste changes across branches?
git stash
# check out the other branch...
git stash pop
9- How do I MERGE a feature branch into main?
git checkout main
git merge featurebranch
10- How do I update my local branch with commits from GitHub?
git fetch # makes local aware of changes in remote
git checkout main # in this example we wish to update main
git merge origin/main # merges main from GitHub into local main