renamed the branch from master to main , do this in your repo to follow up git branch -m master main git fetch origin git branch -u origin/main main git remote set-head origin -a