Connecting a Remote Repository
When you clone a repository from a remote server, Git automatically remembers this connection for you. It saves it as a remote called "origin" by default. Exactly as with the "master" branch, the name "origin" for this remote is only a naming convention. It's just a normal remote repository like any other.
In other cases where you started with a fresh local repository, no remote connections are saved. In that situation, we need to connect our local repository to a new remote before we can try some remote interactions.
As an example, we'll connect a remote from GitHub (at the URL "https://github.com/gittower/git-crash-course-remote.git") and call it "origin":
With the local repository open in Tower, click the "+" button on the bottom of the toolbar and select "Add Remote Repository...". In the following dialog, you can enter your authentication details for this remote.
![](https://www.git-tower.com/learn/media/pages/git/ebook/en/desktop-gui/remote-repositories/connecting-remote-repositories/2551c68653-1721995669/01-remote-add_mac.gif)
![](https://www.git-tower.com/learn/media/pages/git/ebook/en/desktop-gui/remote-repositories/connecting-remote-repositories/613fdea7fd-1721995669/01-remote-add_windows.gif)
Note that you can connect as many remotes with a local repository as you like.