Skip to content

Move master branch to main #253

Closed
Closed

Description

@jennybc

Cc @schloerke

The master branch of this repository will soon be renamed to main, as part of a coordinated change across several GitHub organizations (including, but not limited to: tidyverse, r-lib, tidymodels, and sol-eng). We anticipate this will happen by the end of September 2021.

That will be preceded by a release of the usethis package, which will gain some functionality around detecting and adapting to a renamed default branch. There will also be a blog post at the time of this master --> main change.

The purpose of this issue is to:

  • Help us firm up the list of targetted repositories
  • Make sure all maintainers are aware of what's coming
  • Give us an issue to close when the job is done
  • Give us a place to put advice for collaborators re: how to adapt

message id: entire_lizard

Activity

  1. jennybc commented on Oct 27, 2021

    @jennybc
    MemberAuthor

    We're ready to rename master to main here (and elsewhere)!

    This blog post announces the larger effort and explains how contributors can update their local environments:

    Renaming the default branch

    Here's the TL;DR:

    1. Update usethis (you want usethis v2.1.2 or higher):
      install.packages("usethis")
    2. Someone with admin permissions on this repo needs to do the renaming,
      as I do not have the power:
      usethis::git_default_branch_rename()
      If you wish, you can read the documentation for git_default_branch_rename().
      Or do the equivalent from the command line and in the browser (see the blog post).
    3. All remaining contributors can adjust to the renamed default branch with:
      usethis::git_default_branch_rediscover()
      If you wish, you can read the documentation for git_default_branch_rediscover().
      Or do the command line equivalent (see the blog post).

    message id: amused_halibut

  2. self-assigned this
    on Oct 27, 2021
  3. gadenbuie commented on Oct 28, 2021

    @gadenbuie
    Member

    The change to main as the default branch has been completed! Thank you @jennybc 👏

    If you are a contributor to gradethis or have a fork of gradethis and would like to update your fork to match, follow point 3 above for a seamless conversion:

    usethis::git_default_branch_rediscover()
    #> ✓ Setting active project to '/Users/garrick/.../gradethis'
    #> ℹ Default branch of the source repo 'rstudio/gradethis': 'main'
    #> ✓ Default branch of local repo has moved: 'master' --> 'main'
    #> ✓ Default branch of your fork has moved: 'master' --> 'main'
  4. pinned this issue on Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions