how to push to github from git 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 init -b main
git add .
git commit -m "First commit"
git push origin master
$ git init -b main