##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:alexpchin/<reponame>.git
git push -u origin master
##Push an existing repository from the command line
git remote add origin [email protected]:alexpchin/<reponame>.git
git push -u origin master
I think instead of SSH , This Might also Works Fine!!
curl https://api.github.com/user/repos?access_token=myAccessToken -d '{"name":"REPO ANME"}'
If you Don't have an Access Token You could Just go to Git Hub Settings > Developer Settings > Personal Access Tokens and Get your Token Replace that in the Curl Command.
git remote set-url origin https://github.com/user name/Repo name.git
git remote add origin https://github.com/user name/repo name.git
git push -u origin main
And yeah!! you are all Set!!
Go ahead and Have Fun!!