how to create a github repo on linux command line code example
Example 1: git add existing project to repository
git remote add origin <repository url>
git branch -M main
git push -u origin main
Example 2: initialize a repo and push to github
git init
git add -A
git commit -m 'Added my project'
git remote add origin [email protected]:sammy/my-new-project.git
git push -u -f origin master
Example 3: how to create a github repo on linux command line
curl -i -H 'Authorization: token <your_token>' -d '{"name":"csreNewProj"}' https://api.github.com/user/repos