git checkout main
git remote set-head origin -a
Source: https://stackoverflow.com/questions/8839958/how-does-origin-head-get-set
git checkout main
git remote set-head origin -a
Source: https://stackoverflow.com/questions/8839958/how-does-origin-head-get-set