Optional
--bareCreates a bare Git repository.
Optional
--branchPoints to the specified branch after cloning.
Optional
--configSets a configuration variable in the cloned repository.
Optional
--depthCreates a shallow clone with a history truncated to the specified number of commits.
Optional
--dissociateStops the borrowing initiated by --reference.
Optional
--filterSelects a subset of reachable objects.
Optional
--jobsSpecifies the number of submodules fetched simultaneously.
Optional
--localBypasses the "Git aware" transport mechanism.
Optional
--mirrorSets up a mirror of the source repository.
Optional
--no-Does not checkout HEAD after the clone is complete.
Optional
--no-Copies files instead of using hardlinks on a local filesystem.
Optional
--no-The complement of --reject-shallow.
Optional
--no-The complement of --remote-submodules.
Optional
--no-The complement of --shallow-submodules.
Optional
--no-The complement of --single-branch.
Optional
--no-Does not clone any tags.
Optional
--originSpecifies the remote name of the upstream repository.
If unspecified, the value origin
is used.
Optional
--progressForces progress reports to the standard error stream.
Optional
--quietSuppresses progress reports to the standard error stream.
Optional
--recurse-Initializes and clones submodules based on the provided pathspec after cloning.
Optional
--referenceObtains objects from the reference repository on the local machine.
Optional
--reference-Performs a --reference if the reference exists; otherwise, ignores with a warning.
Optional
--reject-Fails if the source is a shallow repository. See also --no-reject-shallow.
Optional
--remote-Submodules which are cloned will use the status of the submodule’s remote-tracking branch to update the submodule, rather than the superproject’s recorded SHA-1.
Optional
--separate-Separates the repository from working tree.
Optional
--server-Transmits the given strings to the server when communicating using protocol version 2.
Optional
--shallow-Creates a shallow clone with a history, excluding commits reachable from the specified remote branch or tag.
Optional
--shallow-Creates a shallow clone with history after the specified time.
Optional
--shallow-Clones submodules with a depth of 1. See also --no-shallow-submodules.
Optional
--sharedShares objects with the source repository on a local machine.
Optional
--single-Clones only the history leading to the tip of a single branch. See also --no-single-branch.
Optional
--sparseEmploys a sparse-checkout, with only files in the top-level directory initially being present.
Optional
--templateSpecifies the directory from which templates will be used.
Optional
--upload-Specifies a non-default path for the command run on the other end when accessed via ssh.
Optional
--verboseSends additional progress information to the standard error stream. The --verbose option is independent of --progress and --quiet.
CloneOptions defines the supported options for the Git clone command.