- Switch to
mainormasterbranch in local repogit checkout mainorgit switch main
- Fetch and merge changes from origin
git pull origin main
Sources
main or master branch in local repo
git checkout main or git switch maingit pull origin mainSources