Table of Contents

Class GitOperations

Namespace
Ando.Operations
Assembly
ando.dll

Git CLI operations for version control. Methods register steps in the workflow rather than executing immediately. Git commands always run on the HOST (not in containers) since .git lives on host.

public class GitOperations : OperationsBase
Inheritance
GitOperations
Inherited Members

Constructors

GitOperations(StepRegistry, IBuildLogger, Func<ICommandExecutor>)

public GitOperations(StepRegistry registry, IBuildLogger logger, Func<ICommandExecutor> executorFactory)

Parameters

registry StepRegistry
logger IBuildLogger
executorFactory Func<ICommandExecutor>

Methods

Push(Action<GitPushOptions>?)

Pushes the current branch to the remote.

public void Push(Action<GitPushOptions>? configure = null)

Parameters

configure Action<GitPushOptions>

Optional configuration for the push.

PushTags(string)

Pushes all tags to the remote.

public void PushTags(string remote = "origin")

Parameters

remote string

The remote to push to (default: origin).

Tag(string, Action<GitTagOptions>?)

Creates a git tag with the specified name.

public void Tag(string tagName, Action<GitTagOptions>? configure = null)

Parameters

tagName string

The tag name (e.g., "v1.0.0").

configure Action<GitTagOptions>

Optional configuration for the tag.