Create A Github Repo From CLI

Create the remote repo on github: ( username and reponame should be your USERNAME and REPONAME )
curl -u $USERNAME -d '{"name":"$REPONAME"}'
Initialize your repo locally:
git init
Create a README:
echo "# myapp" >>
git add
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$USERNAME/$REPONAME.git
Now push your local changes to the remote master branch:
git push -u origin main
git status