summaryrefslogtreecommitdiffstats
path: root/git-clone.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2007-01-02 00:04:15 +0000
committerJunio C Hamano <junio@hera.kernel.org>2007-01-02 00:04:15 +0000
commitb288d9efccdc870a87fa612f162eff891f26a71f (patch)
tree36ef915fff1dd53ad5b9677b1aacd6477cd3f8d6 /git-clone.txt
parentd3361ad1971d98f2e17e3bb09b77eee7b93700f0 (diff)
downloadgit-htmldocs-b288d9efccdc870a87fa612f162eff891f26a71f.tar.gz
Autogenerated HTML docs for v1.5.0-rc0-gf4bf2
Diffstat (limited to 'git-clone.txt')
-rw-r--r--git-clone.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/git-clone.txt b/git-clone.txt
index 96523204d..e7085fdf5 100644
--- a/git-clone.txt
+++ b/git-clone.txt
@@ -11,7 +11,7 @@ SYNOPSIS
[verse]
'git-clone' [--template=<template_directory>] [-l [-s]] [-q] [-n] [--bare]
[-o <name>] [-u <upload-pack>] [--reference <repository>]
- <repository> [<directory>]
+ [--depth=<depth>] <repository> [<directory>]
DESCRIPTION
-----------
@@ -31,6 +31,7 @@ the remote branch heads under `$GIT_DIR/refs/remotes/origin` and
by initializing `remote.origin.url` and `remote.origin.fetch`
configuration variables.
+
OPTIONS
-------
--local::
@@ -95,6 +96,15 @@ OPTIONS
if unset the templates are taken from the installation
defined default, typically `/usr/share/git-core/templates`.
+--depth=<depth>::
+ Create a 'shallow' clone with a history truncated to the
+ specified number of revs. A shallow repository has
+ number of limitations (you cannot clone or fetch from
+ it, nor push from nor into it), but is adequate if you
+ want to only look at near the tip of a large project
+ with a long history, and would want to send in a fixes
+ as patches.
+
<repository>::
The (possibly remote) repository to clone from. It can
be any URL git-fetch supports.