Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# usage:
# $ export GITHUB_TOKEN=[token]
# $ rename-master-to-main.sh [org] [repo]
# generate GITHUB_TOKEN at https://github.com/settings/tokens/new with "repo" privileges
ORG="$1"
REPO="$2"
rm -rf $REPO