- Switch to
main
ormaster
branch in local repogit checkout main
orgit 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 main
git pull origin main
Sources