User Tools

Site Tools


This is an old revision of the document!


How to add, use and delete remotes, using Linux kernel source repo as an example.

Add a new remote

Currently one remote:

$ git remote -v
origin (fetch)
origin (push)

Query linux-next before adding it as a remote:

$ git ls-remote

Add as a new remote with name ln:

$ git remote add ln

There are no new branches yet:

$ git branch -a
* master
  remotes/origin/HEAD -> origin/master

But we have a new registered remote:

$ git remote -v
ln (fetch)
ln (push)
origin (fetch)
origin (push)
git_adding_remotes.1552046229.txt.gz · Last modified: 2019/03/08 11:57 by rpjday