Skip to content
R for the Rest of Us: A Statistics-Free Introduction is out now! Check it out →
R for the Rest of Us Logo

This lesson is locked

Get access to all lessons in this course.

If the video is not playing correctly, you can watch it in a new window

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

Working in the local-first project:

  1. Load the usethis package (install it if necessary)

  2. Check the name of your default branch using git_default_branch()

  3. If your default branch is called master, switch to main using git_default_branch_rename() and git_default_branch_rediscover()

  4. Set up your system to use main as the default branch in the future using git_default_branch_configure()

Learn More

If you're interested in learning more about why GitHub decided to switch the default from master to main, this article gives a nice overview. You might also check out this statement from the Software Freedom Conservancy on the switch.

Much of what I showed above comes from this article on the tidyverse blog about renaming the default branch.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.