How to keep a git feature branch in sync with the master or main branch

git checkout master
git pull
git checkout mobiledevicesupport
git merge master