Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1013 Bytes

clone.md

File metadata and controls

45 lines (35 loc) · 1013 Bytes
name cbbaseinfo cbparameters data
clone
description
Clones a Git repository from the given URL to the specified path.
parameters returns
name typeName description
url
string
The URL of the Git repository to clone.
name typeName description
path
string
The file system path where the repository should be cloned to.
signatureTypeName description typeArgs
Promise
A promise that resolves with the response from the clone event.
type name
intrinsic
any
name category link
clone
git
clone.md

Status

Comming soon...

Example

await git.clone('https://github.com/user/repo.git', '/path/to/local/repo')

Explaination

Clone an existing Git repository from a given URL to a local directory. It has two parameter.

url: A string specifying the remote repository URL.

path: A string specifying the local directory path where the repository should be cloned.