Sync feature branch with main branch

Updated: April 15, 2020
Tags:git

If you are in the feature-branch, go the the main branch first:

Terminal
git checkout main
git pull
git checkout feature-branch
git pull --all
git merge main