]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Documentation: describe "-f/-t/-m" options to "git-remote add"
authorJunio C Hamano <junkio@cox.net>
Mon, 26 Feb 2007 07:26:11 +0000 (23:26 -0800)
committerJunio C Hamano <junkio@cox.net>
Mon, 26 Feb 2007 07:50:29 +0000 (23:50 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-remote.txt

index a60c31a3150ca8109b1fb16aaf8ff485b57c9932..a2ff8f098ebff138751a3559fee54019584e096a 100644 (file)
@@ -31,6 +31,19 @@ subcommands are available to perform operations on the remotes.
 Adds a remote named <name> for the repository at
 <url>.  The command `git fetch <name>` can then be used to create and
 update remote-tracking branches <name>/<branch>.
++
+With `-f` option, `git fetch <name>` is run immediately after
+the remote information is set up.
++
+With `-t <branch>` option, instead of the default glob
+refspec for the remote to track all branches under
+`$GIT_DIR/remotes/<name>/`, a refspec to track only `<branch>`
+is created.  You can give more than one `-t <branch>` to track
+multiple branche without grabbing all branches.
++
+With `-m <master>` option, `$GIT_DIR/remotes/<name>/HEAD` is set
+up to point at remote's `<master>` branch instead of whatever
+branch the `HEAD` at the remote repository actually points at.
 
 'show'::