Skip to content

Commit

Permalink
Documentation: git-remote add [-t <branch>] [-m <branch>] [-f] name url
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Feb 28, 2007
1 parent 4fa96e1 commit db554bf
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Documentation/git-remote.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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
Expand All @@ -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]
Expand Down

0 comments on commit db554bf

Please sign in to comment.