create a new repository in github using command line code example
Example 1: git push new repo to remote
$ git remote add origin <remote repository URL>
# Sets the new remote
# Push the changes in your local repository to GitHub.
$ git push -u origin master
# Pushes the changes in your local repository up to the remote repository you specified as the origin
Example 2: create new repository on the command line
git init
git add README.MD
git commit -m "commit message"
git remote add origin git url_of_github_repo
git push origin master