A quick tip for creating a new directory and setting up a repository on GitHub at the same time using the GitHub CLI.

First make sure you’re in the root directory, then run the following command:

gh repo create REPO_NAME_HERE --clone --private -l MIT

For pubic repos, just chnage the --private flag to --public