In the previous post, we talked about branching and merging. We will say a few last words on branches in this post and dive into remotes.
What are remotes ? What are they for ? How are they used ?
Coming right up.
## Requirements {#requirements}
In this post, we will need another requirement.
- First, you obviously need _git_.
- Second, you will need a git repository on a git server. Easier way is to create an account on [Gitlab](https://gitlab.com), [GitHub](https://github.com) or other similar services.
## Branches {#branches}
I have a few more things I need to say about branches...
If you came to the same conclusion that branches in _git_ are _cheap_, you are correct.
This is very important because this encourages you to create more branches.
A lot of short living branches is a great way to work. Small features added here and there.
Small projects to test new features, etc...
Second conclusion you can come up with from the previous post is that the _master_ branch is not a _special_ branch.
People use it as a _special_ branch, or the branch of **truth** by convention _only_.
I should also note that some services like **Gitlab** offer master branch protection on their own which would not allow master history overwriting.
The best next topic that comes after _branches_ is a topic extremely similar to it, **remotes**.
## Remotes {#remotes}
The description of `git-remote` from the [manual page](https://git-scm.com/docs/git-remote) is simply
> Manage the set of repositories ("remotes") whose branches you track.
That's exactly what it is.
A way to manage _remote_ repositories.
Now we will be talking about managing them in a bit but let's talk about how to use them.
I found the best way to think to work with them is that you can think of them as _branches_.
That's exactly why I thought this would be best fit after that blog post.
### Listing {#listing}
Let's list them on our project and see what's what.
```text
$ git remote -v
```
Okay! Nothing...
Alright, let's change that.
We don't have a _remote_ repository we can manage.
We need to create one.
### Adding a remote {#adding-a-remote}
So I went to **Gitlab** and I created a new repository.
After creating the repository, you will get a box with commands that look similar to the following.