Documentation: git-remote add [-t <branch>] [-m <branch>] [-f] name url
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Feb 28, 2007 at 14:05 UTC
db554bf0a7a111de5157286cfa216817001f87fa
1 file changed
+14
-3
Documentation/git-remote.txt
+14
-3
@@ -10,7 +10,7 @@ SYNOPSIS
10
--------
11
[verse]
12
'git-remote'
13
-'git-remote' add <name> <url>
13
+'git-remote' add [-t <branch>] [-m <branch>] [-f] <name> <url>
14
'git-remote' show <name>
15
'git-remote' prune <name>
16
@@ -66,8 +66,8 @@ gitlink:git-config[1]).
66
Examples
67
--------
68
69
-Add a new remote, fetch, and check out a branch from it:
70
-
69
+* Add a new remote, fetch, and check out a branch from it
70
++
71
------------
72
$ git remote
73
origin
@@ -87,6 +87,17 @@ $ git checkout -b nfs linux-nfs/master
87
...
88
------------
89
90
+* Imitate 'git clone' but track only selected branches
91
++
92
+------------
93
+$ mkdir project.git
94
+$ cd project.git
95
+$ git init
96
+$ git remote add -f -t master -m master origin git://example.com/git.git/
97
+$ git merge origin
98
+------------
99
+
100
+
101
See Also
102
--------
103
gitlink:git-fetch[1]