Title: Theory / Important / CS / Softw / VCS / Git / Clone
Tags: hasNotNewEffectReturnsMeaning some_instruction FromInstruction FromVariables computer_to_instruction fromCommand seen_description

Fla: clone url
Effect: Obtain a copy of the entire project history from url
Prefix: git
Chapter: 2
Section: 1

Variable: origin
Meaning: The server from which this git repository is cloned
Section: 5
Chapter: 2

Fla: --recurse-submodules
Effect: Also clone the submodules
Page: https://git-scm.com/book/en/v2/Git-Tools-Submodules
Prefix: git clone

Fla: clone bundle folder
Effect: create a repo folder from file bundle created with `git bundle`
Page: https://git-scm.com/book/en/v2/Git-Tools-Bundling
Prefix: git
Chapter: 7
Section: 12

Variable: GIT_PROTOCOL_FROM_USER
Meaning: Set to 0 to prevent protocols used by fetch/push/clone which are configured to the user state
Page: https://git-scm.com/book/en/v2/Appendix-C:-Git-Commands-Inspection-and-Comparison
Context: git
Section: environment variables

Variable: .git/shallow
Meaning: similar to info/grafts but is internally used and maintained by shallow clone mechanism.
Page: https://git-scm.com/docs/gitrepository-layout
Context: git
Kind: file

Variable: extension.partialClone
Meaning: A remote that have missing files due to a partial clone/fetch
Page: https://git-scm.com/docs/gitrepository-layout
Context: git

Name: A shallow clone
Definition: A shallow repository created by running `git clone --depth=...`
Page: https://git-scm.com/docs/gitglossary
Context: git

Fla: --local
Effect: optimize for local copy, e.g. hard link instead of copy
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Flag abbreviation: -l

Fla: --no-local
Effect: Don't do any local optimization
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --no-hardlinks
Effect: Force the cloning process from a repository on a local filesystem to copy the files under the .git/objects directory instead of using hardlinks.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --shared
Effect: uses alternate object repositories instead of copying the original object repo
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Flag abbreviation: -s

Fla: --reference <repository>
Effect: Uses <repository> as alternate git object repository or fail
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --reference-if-able <repository>
Effect: Uses <repository> as alternate git object repository. Ignore if <repository> is not a repository
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --dissociate
Effect: Borrow the objects from reference repositories specified with the --reference options only to reduce network transfer, and stop borrowing from them after a clone is made by making necessary local copies of borrowed objects.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --quiet
Effect: Operate quietly. Progress is not reported to the standard error stream.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Flag abbreviation: -q

Fla: --verbose
Effect: Run verbosely. Does not affect the reporting of progress status to the standard error stream.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Flag abbreviation: -v

Fla: --progress
Effect: forces progress status even if the standard error stream is not directed to a terminal.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --server-option=<option>
Effect: Transmit the given string to the server when communicating using protocol version 2.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --no-checkout
Effect: No checkout of HEAD is performed after the clone is complete.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Flag abbreviation: -n

Fla: --reject-shallow
Effect: Fail if the source repository is a shallow repository.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --no-reject-sharrow
Effect: accept to clone shallow repository
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --bare
Effect: Make a bare Git repository.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --sparse
Effect: Employ a sparse-checkout, with only files in the toplevel directory initially being present.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --filter=<filter-spec>
Effect: Use the partial clone feature and request that the server sends a subset of reachable objects according to a given object filter.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --also-filter-submodules
Effect: Also apply the partial clone filter to any submodules in the repository.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Assuming: --filter --recurse-submodules

Fla: --mirror
Effect: Set up a mirror of the source repository. Maps local branches of the source to local branches of the target, it maps all refs (including remote-tracking branches, notes etc.) and sets up a refspec configuration such that all these refs are overwritten by a git remote update in the target repository.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --origin <name>
Effect: Use <name> to keep track of the upstream repository
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Flag abbreviation: -o <name>

Fla: --branch <name>
Effect: Instead of pointing the newly created HEAD to the branch pointed to by the cloned repository’s HEAD, point to <name> branch instead.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Flag abbreviation: -b <name>

Fla: --upload-pack <upload-pack>
Effect: specifies a non-default path for the command run on the other end.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Flag abbreviation: -u <upload-pack>

Fla: --config <key>=<value>
Effect: Configure <key> to <value>. Its used for most but not all of the cloning
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Flag abbreviation: -c <key>=<value>

Fla: --depth <depth>
Effect: Create a shallow clone with a history truncated to the specified number of commits.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --shollow-since=<date>
Effect: Create a shallow clone with a history after the specified time.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --shallow-exclude=<revision>
Effect: Create a shallow clone with a history, excluding commits reachable from <revision>
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --single-branch
Effect: Clone only the history leading to the tip of a single branch, either specified by the --branch option or the primary branch remote’s HEAD points at.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --no-tags
Effect: Don’t clone any tags and config so that fetch don't either
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --shallow-submodules
Effect: All submodules which are cloned will be shallow with a depth of 1.
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --remote-submodules
Effect: All 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
Page: https://git-scm.com/docs/git-clone
Prefix: git clone

Fla: --jobs <n>
Effect: Fetch at most <n> submodules simultaneously
Page: https://git-scm.com/docs/git-clone
Prefix: git clone
Flag abbreviation: -j <n>

Fla: <directory>
Effect: call the cloned directory <directory>
Page: https://git-scm.com/docs/git-clone
Prefix: git clone URL