Skip to content

Commit 34a25d4

Browse files
wkinggitster
authored andcommitted
Documentation: Update the NFS remote examples to use the staging repo
linux-nfs.org seems to have restructured their repository layout since 8391c60 (git-remote.txt: fix example url, 2007-11-02), and Bruce's repo is now at git://git.linux-nfs.org/projects/bfields/linux.git. Bruce also has a more richer internal branch structure (master, everything, for-3.1, ...), so updating the existing example to use his current repo may be confusing. To simplify, I've replaced the NFS repo with Greg's staging repo. I've also updated the output of the surrounding commands to match the output of a current run through. Signed-off-by: W. Trevor King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f22a654 commit 34a25d4

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

Documentation/git-remote.txt

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,25 @@ Examples
187187
$ git remote
188188
origin
189189
$ git branch -r
190-
origin/master
191-
$ git remote add linux-nfs git://linux-nfs.org/pub/linux/nfs-2.6.git
190+
origin/HEAD -> origin/master
191+
origin/master
192+
$ git remote add staging git://git.kernel.org/.../gregkh/staging.git
192193
$ git remote
193-
linux-nfs
194194
origin
195-
$ git fetch
196-
* refs/remotes/linux-nfs/master: storing branch 'master' ...
197-
commit: bf81b46
195+
staging
196+
$ git fetch staging
197+
...
198+
From git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
199+
* [new branch] master -> staging/master
200+
* [new branch] staging-linus -> staging/staging-linus
201+
* [new branch] staging-next -> staging/staging-next
198202
$ git branch -r
199-
origin/master
200-
linux-nfs/master
201-
$ git checkout -b nfs linux-nfs/master
203+
origin/HEAD -> origin/master
204+
origin/master
205+
staging/master
206+
staging/staging-linus
207+
staging/staging-next
208+
$ git checkout -b staging staging/master
202209
...
203210
------------
204211

Documentation/user-manual.txt

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -431,19 +431,25 @@ You can also track branches from repositories other than the one you
431431
cloned from, using linkgit:git-remote[1]:
432432

433433
-------------------------------------------------
434-
$ git remote add linux-nfs git://linux-nfs.org/pub/nfs-2.6.git
435-
$ git fetch linux-nfs
436-
* refs/remotes/linux-nfs/master: storing branch 'master' ...
437-
commit: bf81b46
434+
$ git remote add staging git://git.kernel.org/.../gregkh/staging.git
435+
$ git fetch staging
436+
...
437+
From git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
438+
* [new branch] master -> staging/master
439+
* [new branch] staging-linus -> staging/staging-linus
440+
* [new branch] staging-next -> staging/staging-next
438441
-------------------------------------------------
439442

440443
New remote-tracking branches will be stored under the shorthand name
441-
that you gave `git remote add`, in this case `linux-nfs`:
444+
that you gave `git remote add`, in this case `staging`:
442445

443446
-------------------------------------------------
444447
$ git branch -r
445-
linux-nfs/master
446-
origin/master
448+
origin/HEAD -> origin/master
449+
origin/master
450+
staging/master
451+
staging/staging-linus
452+
staging/staging-next
447453
-------------------------------------------------
448454

449455
If you run `git fetch <remote>` later, the remote-tracking branches
@@ -455,9 +461,9 @@ a new stanza:
455461
-------------------------------------------------
456462
$ cat .git/config
457463
...
458-
[remote "linux-nfs"]
459-
url = git://linux-nfs.org/pub/nfs-2.6.git
460-
fetch = +refs/heads/*:refs/remotes/linux-nfs/*
464+
[remote "staging"]
465+
url = git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
466+
fetch = +refs/heads/*:refs/remotes/staging/*
461467
...
462468
-------------------------------------------------
463469

0 commit comments

Comments
 (0)