Skip to content

QiuZhiFei/github-renaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Renaming the default branch

Renaming the default branch of our own repositories from master to main.

Installation

gem install github-renaming

Usage

github-renaming default-branch <old-branch> <new-branch> -t <token> -r <user/repo>

Rename master to main

github-renaming default-branch master main -t <token> -r <user/repo>

License

The gem is available as open source under the terms of the MIT License.