GitAliases.

GitClone(ICakeContext, string, DirectoryPath) Method

Summary

Clone unauthenticated using default options.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

public static DirectoryPath GitClone(this ICakeContext context, string sourceUrl, DirectoryPath workDirectoryPath)

Examples

GitClone("https://github.com/cake-build/cake.git", "c:/temp/cake");

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.

Return Value

Type Description
DirectoryPath The path to the created repository.