git statusgit log
git log --oneline --graph --all --decorategit config --global alias.lg "log --oneline --graph --all --decorate"git diff HEADgit reset --hardgit checkout somebranchgit checkout -b thenewbranchgit stash
# check out the other branch...
git stash popgit checkout main
git merge featurebranchgit 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