This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Git.
Summary
Clone unauthenticated using specific settings.
Syntax
public static DirectoryPath GitClone(this ICakeContext context, string sourceUrl, DirectoryPath workDirectoryPath, GitCloneSettings cloneSettings)
Examples
GitClone("https://github.com/cake-build/cake.git", "c:/temp/cake",
new GitCloneSettings{ BranchName = "main" });
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
sourceUrl |
string |
URI for the remote repository. |
workDirectoryPath |
DirectoryPath |
Local path to clone into. |
cloneSettings |
GitCloneSettings |
The clone settings. |
Return Value
Type |
Description |
DirectoryPath |
The path to the created repository.
|