rename default branch to "main"
wibeasley opened this issue · comments
@kuriwaki, after things are accepted on CRAN, do you mind if I rename the default branch? There are some git commands you can run locally, but honestly it's almost easier to delete and reclone your local copy.
https://ouhscbbmc.github.io/data-science-practices-1/git.html?q=master#main-vs-master-branch
Yes that crossed my mind too. Please do!
In R, this function usethis::git_default_branch_rename()
does the job quickly and painlessly. But I get the following error when I run this.
> usethis::git_default_branch_rename()
✔ Setting active project to '/Users/sk2983/Projects/dataverse-client-r'
Error: You don't seem to have admin permissions for the source repo 'IQSS/dataverse-client-r', which is required to rename the default branch.
@wibeasley can you try on your end?
@kuriwaki you weren't part of https://github.com/orgs/IQSS/teams/dataverse-client-r-admin but I just added you. (You were part of the "write" team.)
Thanks @pdurbin. That worked and now the branch is renamed. I will fix the reference in our workflow from "master" to "main" as well.