How to rebase a git branch

Rebasing current branch if main had any changes made to it

bash

git fetch
git push origin/main