Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR2512: Intro to git remote

Hosted by Klaatu on 2018-03-20 00:00:00
Download or Listen

Instantiate a git repo:


$ mkdir alice
$ cd !$
$ git init

Add a remote:


$ git remote add origin URI_OF_REMOTE

Change a remote:


$ git remote set-url origin NEW_URI

A remote can be a server, it can be a local directory, an NFS share, pretty much whatever you want.

It is a Git convention that the primary remote is called origin. You don't have to call it that, but it's pretty common.

Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.