Git 2 · Remotes

Add a remote

Connect the repository to a remote named origin.

git remote add origin https://github.com/user/repo.git

Official Git 2 documentation

More remotes commands

All remotes commands · Git 2 cheatsheet

Was this page helpful?