summaryrefslogtreecommitdiff
path: root/Documentation/git-remote.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-28 22:05:42 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-02-28 22:05:42 (GMT)
commitdb554bf0a7a111de5157286cfa216817001f87fa (patch)
tree7fa45f9cd58f89d88ed28971750639397eb286a5 /Documentation/git-remote.txt
parent4fa96e15571cb3ccf4e0ac1feb1ecf96521c6b70 (diff)
downloadgit-db554bf0a7a111de5157286cfa216817001f87fa.zip
git-db554bf0a7a111de5157286cfa216817001f87fa.tar.gz
git-db554bf0a7a111de5157286cfa216817001f87fa.tar.bz2
Documentation: git-remote add [-t <branch>] [-m <branch>] [-f] name url
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-remote.txt')
-rw-r--r--Documentation/git-remote.txt17
1 files changed, 14 insertions, 3 deletions
diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt
index a2ff8f0..f96b304 100644
--- a/Documentation/git-remote.txt
+++ b/Documentation/git-remote.txt
@@ -10,7 +10,7 @@ SYNOPSIS
--------
[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>
@@ -66,8 +66,8 @@ gitlink:git-config[1]).
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
@@ -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]