In the section Complete workflow, Step 9 Create GitHub repository, if you follow the instructions for Using Git (traditional), before you can run
git push -u origin main
you need to run
git branch -M main
as you teach earlier in the course.
At least on my Windows 11 setup, after I ran
uv init my-awesome-project
the default branch is still the old master branch, not main.
You could fix that by setting the default branch to main with
git config --global init.defaultBranch main
which I have done to avoid that extra step for future projects created with uv.
In the section Complete workflow, Step 9 Create GitHub repository, if you follow the instructions for Using Git (traditional), before you can run
git push -u origin mainyou need to run
git branch -M mainas you teach earlier in the course.
At least on my Windows 11 setup, after I ran
uv init my-awesome-projectthe default branch is still the old master branch, not main.
You could fix that by setting the default branch to main with
git config --global init.defaultBranch mainwhich I have done to avoid that extra step for future projects created with uv.