how to commit and push to a repository on 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: pushing to github
git add .
git commit -m "First commit"
git push origin master
Example 3: 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