First get all the branch info from git
git fetch
Then go to the main branch:
git checkout main
You then need to update the version of main you have:
git pull