git init a local repository to a remote repository github code example
Example: connect local repository to remote git
git remote add origin <remote repository URL>
# Sets the new remote
git remote -v
# Verifies the new remote URL
git push origin master