A file system implementation.
An HTTP client.
The URL of the remote repository.
Optional
cache?: CacheA cache object.
Optional
depth?: numberDetermines how much of the git repository's history to retrieve.
Optional
exclude?: string[]A list of branches or tags. Instructs the remote server not to send us any commits reachable from these refs.
Optional
gitdir?: stringThe git directory path (default: {dir}/.git
).
Optional
headers?: HttpHeadersAdditional headers to include in HTTP requests, similar to git's extraHeader
config.
Optional
noIf true, clone will only fetch the repo, not check out a branch. Skipping checkout can save a lot of time normally spent writing files to disk.
Optional
noBy default clone will fetch all tags. noTags
disables that behavior.
Optional
onOptional auth fill callback.
Optional
onOptional auth rejected callback.
Optional
onOptional auth approved callback.
Optional
onOptional message event callback.
Optional
onOptional progress event callback.
Optional
ref?: stringWhich branch to checkout. By default this is the designated "main branch" of the repository.
Optional
relative?: booleanChanges the meaning of depth
to be measured from the current shallow depth rather than from the branch tip.
Optional
remote?: stringWhat to name the remote that is created (default: origin
).
Optional
since?: DateOnly fetch commits created after the given date. Mutually exclusive with depth
.
Optional
singleInstead of the default behavior of fetching all the branches, only fetch a single branch.
Generated using TypeDoc
The working tree directory path.