GitAliases.

GitReset(ICakeContext, DirectoryPath, GitResetMode) Method

Summary

Resets the current branch head (HEAD) optionally modifying index and working tree to match.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

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

Type Description
void