push to a github 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
Example 3: how to push to git hub
git push <REMOTENAME> <BRANCHNAME>