how to push my local git repository to github code example
Example 1: git push existing code to new repository
git remote add origin <remote repository URL>
Example 2: how to push repository to github
$ git init -b main
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