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
registryStepRegistryloggerIBuildLoggerexecutorFactoryFunc<ICommandExecutor>
Methods
Push(Action<GitPushOptions>?)
Pushes the current branch to the remote.
public void Push(Action<GitPushOptions>? configure = null)
Parameters
configureAction<GitPushOptions>Optional configuration for the push.
PushTags(string)
Pushes all tags to the remote.
public void PushTags(string remote = "origin")
Parameters
remotestringThe 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
tagNamestringThe tag name (e.g., "v1.0.0").
configureAction<GitTagOptions>Optional configuration for the tag.