GitAliases.

GitAdd(ICakeContext, DirectoryPath, FilePath[]) Method

Summary

Add file to index.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

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

Examples

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
repositoryDirectoryPath DirectoryPath Path to repository.
filePaths FilePath[] Path to file(s) to add.

Return Value

Type Description
void