
There are several ways to clone repositories available on. Choosing a URL for your remote repository You can use the command git remote set-url to change a remote's URL. This associates the name origin with the REMOTE_URL. You can use the git remote add command to match a remote URL with a name.įor example, you'd type the following in the command line: git remote add origin An SSH URL, like associates a remote URL with a name, and your default remote is usually called origin.

You can only push to two types of URL addresses:

A remote URL is Git's fancy way of saying "the place where your code is stored." That URL could be your repository on GitHub, or another user's fork, or even on a completely different server.
