Skip to content

ggpasqualino/rename-branch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

rename-branch

A little script to help you rename your repos' branch name from master to main and set it as the default branch in github.

But why 😩? Check this Twitter thread

Inspired by this post

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

Pagination

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

About

A little script to help you rename your repo`s branch

Resources

License

Stars

Watchers

Forks

Languages