1.0.1 • Published 4 years ago

@rename-master-branch/github-cli v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

github-cli

CLI to rename the default branch on a GitHub repository

Requirements

Usage

npx @rename-master-branch/github-cli --repo octokit/core.js --token abc4567...

Renaming the default master branch on a GitHub repository has two steps.

  1. Find an replace "master" with "main" using a pull request

    This will update things like CI configuration and badges in your README. But it might have false positives, too, so make sure you review the pull request. You can revert each change directly in the pull request review, by using the "Insert a suggestion" feature in a review comment, setting the suggestion to the original line, and directly applying it.

  2. Rename the default "master" branch, update branch protection and pull request bases

See also

LICENSE

ISC