push an existing repository from the command line to github code example
Example 1: git push existing code to new repository
git remote add origin <remote repository URL>
Example 2: push a project to an existing repoin github using git
$ git init -b main