r-debug
r-debug copied to clipboard
Rename default branch to main
Taken from https://github.com/rstudio/shiny/issues/3502#issuecomment-953318300
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:
Here's the TL;DR:
- Update usethis (you want usethis v2.1.2 or higher):
install.packages("usethis")
-
Someone with
admin
permissions on this repo needs to do the renaming, as I do not have the power:
If you wish, you can read the documentation forusethis::git_default_branch_rename()
git_default_branch_rename()
. Or do the equivalent from the command line and in the browser (see the blog post). - All remaining contributors can adjust to the renamed default branch with:
If you wish, you can read the documentation forusethis::git_default_branch_rediscover()
git_default_branch_rediscover()
. Or do the command line equivalent (see the blog post).
"latest" could be an alternative: builds on GHA use the branch name as a default tag by default.