summaryrefslogtreecommitdiffstats
path: root/git-remote.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2007-03-01 01:24:56 +0000
committerJunio C Hamano <junio@hera.kernel.org>2007-03-01 01:24:56 +0000
commit6ac2f147aa1e6774a32f6ed56a833ef7f08f9871 (patch)
tree296a72f98c7ecf0a372fe59a17e75179bdb33fe3 /git-remote.txt
parentdb911ee731950adff42ed5f6bec37c095e6f16a3 (diff)
downloadgit-htmldocs-6ac2f147aa1e6774a32f6ed56a833ef7f08f9871.tar.gz
Autogenerated HTML docs for v1.5.0.2-260-g2eb065
Diffstat (limited to 'git-remote.txt')
-rw-r--r--git-remote.txt17
1 files changed, 14 insertions, 3 deletions
diff --git a/git-remote.txt b/git-remote.txt
index 266faade3..a9fb6a9a5 100644
--- a/git-remote.txt
+++ b/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>
'git-remote' update [group]
@@ -77,8 +77,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
@@ -98,6 +98,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]