- Must have Git installed.
- Must have GitHub CLI installed.
- Create a file
git-create-repo.sh
in your home directory and save the content ofgit-create-repo.sh
below in the file. - Add a Git alias called
create-repo
that runs the script:
git config --global alias.create-repo "! ~/git-create-repo.sh"