summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4fa96e1)
raw | patch | inline | side by side (parent: 4fa96e1)
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 |
index a2ff8f098ebff138751a3559fee54019584e096a..f96b30429c8d970a2eaabe4a1f3b162ce48a9cee 100644 (file)
--------
[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>
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
...
------------
+* 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]