Skip to content

Need to make sure UV init branch is main, not master #4

Description

@cphillips316

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions