rename master to main - fordsfords/fordsfords.github.io GitHub Wiki
- Exit GitHub Desktop
- Perform browser steps at Renaming a Branch (not including "updating a local clone...).
- Go back to the main page for the repo. Should prompt that the default branch has been renamed. Click "Got it".
- Go to command prompt of laptop and "cd" to the local (cloned) repo.
- Enter:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
- Restart GitHub Desktop.
- Check list of branches, right click "master" (if exists), delete.