git remote addname urlgit pushname branch
Example:
git remote add origin git@github.com:foo/bar.git
git push origin master
See the docs for git push — you can set a remote as the default remote for a given branch; if you don’t, the name origin is special. Just git push alone will do the same as git push origin thisbranch (for whatever branch you’re on).