https://github.com/kentcdodds/rename-gh-to-main
https://github.com/kentcdodds/rename-gh-to-main
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/kentcdodds/rename-gh-to-main
- Owner: kentcdodds
- Created: 2021-01-25T23:37:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-07T05:20:34.000Z (over 5 years ago)
- Last Synced: 2025-04-23T00:06:51.547Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 67
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rename GH default branches from "master" to "main"
[Why?](https://www.theserverside.com/feature/Why-GitHub-renamed-its-master-branch-to-main)
This is a Cypress "test" that allows you to quickly rename all your GitHub
repository default branches from `master` to `main`.
Steps:
1. clone this repo
2. `npm install`
3. run `node create-repos-file.js --username={USERNAME}` with your username. This will create repos.json, which is an array of URLs to all the repos you want to rename
4. Run `npm run cy`
5. Run the test "rename"
6. Login with your credentials and then press "resume"
7. Watch it all run!
Woo!
Watch the live stream of this being built here:
https://www.youtube.com/watch?v=xD5ArlskA1w