Rename master branch to main for your owned repositories
Create access token https://github.com/settings/tokens/new?scopes=repo
Create an oberisk.yml
at current working directory
echo "auth:
owner:" > oberisk.yml
structure
# oberisk.yml
auth: # access token
owner: # your github username
Run yarn
and yarn rename master main --set-default --repo=<your repo name>
Or use --all
flag to change ALL REPOSITORIES
yarn rename source_branch new_branch [OPTION], ignore fork repo
--repo=<repo name> specify a repository
--all set all repositories
--set-default set new_branch to default branch
Be careful if --set-default
not set and source_branch is default branch, it just create an new_branch