Git - Working with Remotes
git-scm.com › v2 › Git-Basics-Working-with-RemotesAdding Remote Repositories. We’ve mentioned and given some demonstrations of how the git clone command implicitly adds the origin remote for you. Here’s how to add a new remote explicitly. To add a new remote Git repository as a shortname you can reference easily, run git remote add <shortname> <url>: $ git remote origin $ git remote add pb ...