Inicjalizacja nowego brancha z wypchnięciem go do repozytorium origin.

git switch main
git pull
git switch -c feature-x
git push -u origin feature-x

Praca w branchu a następnie merge.

git switch main
git merge feature-x
git push

Skasowanie niepotrzebnego już brancha.

git branch -d feature-x
git push origin --delete feature-x