<p>
Instantiate a git repo&#58;
</p>

<pre><code>
$ mkdir alice
$ cd !$
$ git init
</code></pre>

<p>
Add a remote&#58;
</p>

<pre><code>
$ git remote add origin URI_OF_REMOTE
</code></pre>

<p>
Change a remote&#58;
</p>

<pre><code>
$ git remote set-url origin NEW_URI
</code></pre>

<p>
A remote can be a server, it can be a local directory, an NFS share, pretty much whatever you want.
</p>
<p>
It is a Git convention that the primary remote is called <code>origin</code>. You don&#39;t have to call it that, but it&#39;s pretty common.
</p>
