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.