Creating a Git Repository via Command Line
First make sure you install the gh CLI tool. You can do that by running the following command:
brew install gh
Make sure you are logged in to your GitHub account. You can do that by running the following command:
gh auth login
git init
Then you can run the following command to create a new private repository:
gh repo create app-name --private
git remote add origin git@github.com:jerrickhakim/app-name.git
Set your branch
git branch -M main
git add .
git commit -m "First commit"
git push --set-upstream origin main