Which command creates and switches to a new branch named feature/x?

git branch feature/x && git checkout main
git switch -c feature/x
git merge feature/x

What is the purpose of git pull --rebase on main before branching?

To delete your local commits
To update main to the latest remote commits with a linear history
To push tags

Which command updates your feature branch on top of the latest remote main?

git pull origin main
git rebase origin/main
git stash pop

How do you set the upstream on first push of your feature branch?

git push -u origin feature/x
git push origin
git push —set-upstream feature/x

What typically happens after pushing your feature branch?

Run git reset —hard
Open a Pull Request for review and merge
Delete the remote repository