index 266faade31ae646a419616fc0fce9d676f112d9d..a9fb6a9a5ef3cfeffa37578b4d703ca75c73f306 100644 (file)
--------
[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' update [group]
'git-remote' show <name>
'git-remote' prune <name>
'git-remote' update [group]
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
...
------------
...
------------
+* 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]