push on github a new repository code example
Example 1: pushing to github
git add .
git commit -m "First commit"
git push origin master
Example 2: how to push repository to github
$ git push origin main
# Pushes the changes in your local repository up to the remote repository you specified as the origin