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
Resets the current branch head (HEAD) optionally modifying index and working tree to match.
Syntax
public static void GitReset(this ICakeContext context, DirectoryPath repositoryDirectoryPath, GitResetMode mode)
Examples
GitReset("c:/temp/cake", GitResetMode.Hard);
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
repositoryDirectoryPath |
DirectoryPath |
Path to repository. |
mode |
GitResetMode |
The effect that the reset action should have on the the index and working tree. |
Return Value