Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Documentation: git-remote add [-t <branch>] [-m <branch>] [-f] name url
author
Junio C Hamano
<junkio@cox.net>
Wed, 28 Feb 2007 22:05:42 +0000
(14:05 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 28 Feb 2007 22:05:42 +0000
(14:05 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-remote.txt
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
4fa96e1
)
diff --git
a/Documentation/git-remote.txt
b/Documentation/git-remote.txt
index a2ff8f098ebff138751a3559fee54019584e096a..f96b30429c8d970a2eaabe4a1f3b162ce48a9cee 100644
(file)
--- a/
Documentation/git-remote.txt
+++ b/
Documentation/git-remote.txt
@@
-10,7
+10,7
@@
SYNOPSIS
--------
[verse]
'git-remote'
--------
[verse]
'git-remote'
-'git-remote' add <name> <url>
+'git-remote' add
[-t <branch>] [-m <branch>] [-f]
<name> <url>
'git-remote' show <name>
'git-remote' prune <name>
'git-remote' show <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
origin
------------
$ git remote
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
--------
gitlink:git-fetch[1]
See Also
--------
gitlink:git-fetch[1]