git status
git log
git log --oneline --graph --all --decorate
git config --global alias.lg "log --oneline --graph --all --decorate"
git diff HEAD
git reset --hard
git checkout somebranch
git checkout -b thenewbranch
git stash
# check out the other branch...
git stash pop
git checkout main
git merge featurebranch
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