
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
github-branch-renamer
Advanced tools
A CLI tool rename and remap one or more default branches in a github repo. Renames X (master) to Y (main), updates /remote/origin/HEAD and updates open PRs base.
GITHUB_TOKEN
or it can be passed when prompted by the CLI. It only needs Repo permissions and can be deleted when you are done with this script.I suggest you use npx since you probably won't need this for long.
npx github-branch-renamer
If for some reason you want to persist this tool then use
npm i -g github-branch-renamer
Run the following command and answer the prompts.
npx github-branch-renamer
https://github.com/Andykmcc/dotfiles.git,https://github.com/Andykmcc/insure.git
).master
.main
.process.env.GITHUB_TOKEN
.This codebase is meant to get the job done, not be pretty. It relies almost entirely on side effects, hence the lack of tests, and doesn't currently attempt to solve the more complex problems around various authentication methods or unclean working tree. It does the following...
FAQs
Rename default branch in Github repos.
The npm package github-branch-renamer receives a total of 2 weekly downloads. As such, github-branch-renamer popularity was classified as not popular.
We found that github-branch-renamer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.