package
0.0.0-20250306180448-e4b0f5e59b4b
Repository: https://github.com/parkr/github-utils.git
Documentation: pkg.go.dev
# README
github-change-default-branch
Iterate over a user/org's repos, and change the default branch of each repo to the name specified.
Usage of github-change-default-branch:
-login string
GitHub Login (user or org) whose repos to list (default: currently-authorized user)
-new-name string
The new name to use for the default branch on given repos (default "main")
Example:
$ github-change-default-branch -login=Microsoft -new-name=main
Installation:
$ go get github.com/parkr/github-utils/cmd/github-change-default-branch