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. |
|
|
|
name |
category |
link |
clone |
git |
clone.md |
|
Comming soon...
await git.clone('https://github.com/user/repo.git', '/path/to/local/repo')
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.