GitAliases.

GitPush(ICakeContext, DirectoryPath, string, string, string) Method

Summary

Push specific branch authenticated.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

public static void GitPush(this ICakeContext context, DirectoryPath repositoryDirectoryPath, string username, string password, string branchName)

Examples

GitPush("c:/temp/cake", "username", "password", "branch");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
repositoryDirectoryPath DirectoryPath Repository path.
username string Username used for authentication.
password string Password used for authentication.
branchName string Name of branch to push.

Return Value

Type Description
void