author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Sat, 2 Aug 2008 19:38:56 +0000 (21:38 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 2 Aug 2008 22:21:59 +0000 (15:21 -0700) | ||
commit | bc699afcce3c45bb17aaca145d081992ed699a42 | |
tree | e52a0b9ceb2aca3543bfab40dde0f0a1398fe41e | tree | snapshot |
parent | 372c767610c4e4d7f4832d037ac51a62a59875a3 | commit | diff |
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>
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>
Documentation/git-clone.txt | diff | blob | history | |
builtin-clone.c | diff | blob | history | |
builtin-remote.c | diff | blob | history | |
t/t5601-clone.sh | diff | blob | history |