connect local repository to remote git

Shell
git remote add origin <remote repository URL>
# Sets the new remote
git remote -v
# Verifies the new remote URL
git push origin master
Source

Also in Shell: