Force push only if no one else has pushed in the meantime
git push --force-with-lease
Change the message of your most recent commit
Apply a specific commit from another branch
Create a new branch and switch to it in one command
Rebase current branch onto latest main