Cake - API - GitAliases.GitPushRef(ICakeContext, DirectoryPath, string, string, string, string) Method

GitAliases.

GitPushRef(ICakeContext, DirectoryPath, string, string, string, string) Method

Summary

Push a tag to a remote authenticated.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

public static void GitPushRef(this ICakeContext context, DirectoryPath repositoryDirectoryPath, string username, string password, string remote, string pushRefSpec)

Examples

GitPushRef("c:/temp/cake", "username", "password", "remote", "refSpec");

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.
remote string The LibGit2Sharp.Remote to push to.
pushRefSpec string The pushRefSpec to push.

Return Value

Type Description
void