Skip to content

srid/master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

master

Dethrone "main" and restore "master" to its rightful glory.

About

A script that unwoke'ifies the default branch by renaming it from "main" to "master".

Prerequisites

  • Nix with flakes enabled
    • (Or, run script.sh directly)
  • GitHub CLI (gh) authenticated with appropriate permissions
    • Run nix run nixpkgs#gh auth login

Usage

nix run github:srid/master -- <repo-url>

The script will:

  1. Check if the repository's default branch is "main"
  2. If not, exit (nothing to do)
  3. If yes, clone the repository
  4. Rename the branch from "main" to "master"
  5. Push the new branch
  6. Update the repository's default branch setting
  7. Delete the old one

Example

nix run github:srid/master -- https://github.com/yourname/yourrepo

License

See LICENSE file for details.

About

Dethrone "main" and restore "master" to its rightful glory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors