GitAliases.

GitConfigUnsetLocal(ICakeContext, DirectoryPath, string) Method

Summary

Unsets the specified local configuration key.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

public static void GitConfigUnsetLocal(this ICakeContext context, DirectoryPath repositoryDirectoryPath, string key)

Examples

GitConfigUnsetLocal("user.email", "[email protected]");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
repositoryDirectoryPath DirectoryPath Repository path.
key string The configuration key.

Return Value

Type Description
void Whether the key was unset.