DaniruKun / rename-branch

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Shell 100.0%