GitAliases.

GitCheckout(ICakeContext, DirectoryPath, string, FilePath[]) Method

Summary

Checkout file(s) using supplied commit or branch spec.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

public static void GitCheckout(this ICakeContext context, DirectoryPath repositoryDirectoryPath, string committishOrBranchSpec, params FilePath[] filePaths)

Examples

var filePaths = new FilePath[] { ".\\test.txt" };
GitCheckout("c:/temp/cake", "develop", filePaths);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
repositoryDirectoryPath DirectoryPath Path to repository.
committishOrBranchSpec string A revparse spec for the commit or branch to checkout paths from.
filePaths FilePath[] Path to files to checkout.

Return Value

Type Description
void