Skip to content
/ oberisk Public

Rename master branch to main for your owned repositories

Notifications You must be signed in to change notification settings

thjxs/oberisk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oberisk

Rename master branch to main for your owned repositories

Usage

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

options

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

Any issuse are welcome

About

Rename master branch to main for your owned repositories

Resources

Stars

Watchers

Forks