Create A Github Repo From CLI

Create the remote repo on github: ( username and reponame should be your USERNAME and REPONAME )
curl -u $USERNAME https://api.github.com/user/repos -d '{"name":"$REPONAME"}'
Initialize your repo locally:
git init
Create a README:
echo "# myapp" >> README.md
git add README.md
git commit -m "first commit"

Check to make sure your branch and the remote have the same name:
git branch
Add remote branch to your local directory:
git remote add origin https://github.com/$USERNAME/$REPONAME.git
Now push your local changes to the remote master branch:
git push -u origin main
git status