path: root/Documentation
diff options
authorJunio C Hamano <>2007-02-26 07:26:11 (GMT)
committerJunio C Hamano <>2007-02-26 07:50:29 (GMT)
commitc5ddca1fff44896b7e94801da75392ccc234060c (patch)
tree721174664b84824b66eb08f21a315235798ef735 /Documentation
parent4fc970c43884e6215c13d6944a2def1eb2134ed5 (diff)
Documentation: describe "-f/-t/-m" options to "git-remote add"
Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation')
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt
index a60c31a..a2ff8f0 100644
--- a/Documentation/git-remote.txt
+++ b/Documentation/git-remote.txt
@@ -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.