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
Checkout file(s) using supplied commit or branch spec.
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