GitHub - danirukun/rename-branch: A little script to help you rename your repos' default branches to master.

2 min read Original article ↗

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Folders and files

NameName

Last commit message

Last commit date

Latest commit

History

6 Commits

Repository files navigation

rename-branch

A little bash script to help you rename all of your Github repository default branches back to master from main.

Dependencies

  • curl
  • jq

Usage

Create a Github Personal Access Token

Then execute the following in your terminal

export GH_USERNAME=your-username
export GH_TOKEN=the-token-above
./rename.sh # or sh rename.sh

Pagination

If you have more than 30 repos you will need to adjust the pagination accordingly.

License

LICENSE

About

A little script to help you rename your repos' default branches to master.

Topics

Resources

Readme

License

MIT license

Activity

Stars

12 stars

Watchers

0 watching

Forks

0 forks

Releases

No releases published

Languages

  • Shell 100.0%