diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2008-08-02 21:38:56 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-02 15:21:59 -0700 |
commit | bc699afcce3c45bb17aaca145d081992ed699a42 (patch) | |
tree | e52a0b9ceb2aca3543bfab40dde0f0a1398fe41e /Documentation/git-clone.txt | |
parent | 372c767610c4e4d7f4832d037ac51a62a59875a3 (diff) | |
download | git-bc699afcce3c45bb17aaca145d081992ed699a42.tar.gz |
clone: Add an option to set up a mirror
The command line
$ git clone --mirror $URL
is now a short-hand for
$ git clone --bare $URL
$ (cd $(basename $URL) && git remote add --mirror origin $URL)
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-clone.txt')
-rw-r--r-- | Documentation/git-clone.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index 26fd1b1117..0e14e732fd 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -10,7 +10,7 @@ SYNOPSIS -------- [verse] 'git clone' [--template=<template_directory>] - [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] + [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror] [-o <name>] [-u <upload-pack>] [--reference <repository>] [--depth <depth>] [--] <repository> [<directory>] @@ -106,6 +106,9 @@ then the cloned repository will become corrupt. used, neither remote-tracking branches nor the related configuration variables are created. +--mirror:: + Set up a mirror of the remote repository. This implies --bare. + --origin <name>:: -o <name>:: Instead of using the remote name 'origin' to keep track |