Documentation: git-remote add [-t <branch>] [-m <branch>] [-f] name url
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -10,7 +10,7 @@ SYNOPSIS
|
|||||||
--------
|
--------
|
||||||
[verse]
|
[verse]
|
||||||
'git-remote'
|
'git-remote'
|
||||||
'git-remote' add <name> <url>
|
'git-remote' add [-t <branch>] [-m <branch>] [-f] <name> <url>
|
||||||
'git-remote' show <name>
|
'git-remote' show <name>
|
||||||
'git-remote' prune <name>
|
'git-remote' prune <name>
|
||||||
|
|
||||||
@ -66,8 +66,8 @@ gitlink:git-config[1]).
|
|||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Add a new remote, fetch, and check out a branch from it:
|
* Add a new remote, fetch, and check out a branch from it
|
||||||
|
+
|
||||||
------------
|
------------
|
||||||
$ git remote
|
$ git remote
|
||||||
origin
|
origin
|
||||||
@ -87,6 +87,17 @@ $ git checkout -b nfs linux-nfs/master
|
|||||||
...
|
...
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
* Imitate 'git clone' but track only selected branches
|
||||||
|
+
|
||||||
|
------------
|
||||||
|
$ mkdir project.git
|
||||||
|
$ cd project.git
|
||||||
|
$ git init
|
||||||
|
$ git remote add -f -t master -m master origin git://example.com/git.git/
|
||||||
|
$ git merge origin
|
||||||
|
------------
|
||||||
|
|
||||||
|
|
||||||
See Also
|
See Also
|
||||||
--------
|
--------
|
||||||
gitlink:git-fetch[1]
|
gitlink:git-fetch[1]
|
||||||
|
Reference in New Issue
Block a user