clone: Clone a repository into a new directory
Usage:
eg clone [--depth DEPTH] REPOSITORY [DIRECTORY]
Description:
Obtains a copy of a remote repository, including all history by default.
A --depth option can be passed to only include a specified number of
recent commits instead of all history (however, this option exists mostly
due to the fact that users of other SCMs fail to understand that all
history can be compressed into a size that is often smaller than the
working copy).
See 'eg help topic remote-urls' for a detailed list of the different ways
to refer to remote repositories.
Examples:
Get a local clone of cairo
$ eg clone git://git.cairographics.org/git/cairo
Get a clone of a local project in a new directory 'mycopy'
$ eg clone /path/to/existing/repo mycopy
Get a clone of a project hosted on someone's website, asking for only the
most recent 20 commits instead of all history, and storing it in the
local directory mydir
$ eg clone --depth 20 http://www.random.machine/path/to/git.repo mydir
Options:
--depth DEPTH
Only download the DEPTH most recent commits instead of all history
Differences from git clone:
eg clone and git clone are very similar, but eg clone by default sets up
a branch for each remote branch automatically (instead of only creating
one branch, typically master).
See also
Run 'man git-clone' for a comprehensive list of options available.
eg clone is designed to accept the same options as git clone, and
with the same meanings unless specified otherwise in the above
"Differences" section.