push your git repository to github code example
Example 1: how to push on Github
echo "# hh" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/codeuiandy/hh.git
git push -u origin main
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>