Table of Contents

Class GitPushOptions

Namespace
Ando.Operations
Assembly
ando.dll

Options for 'git push' command.

public class GitPushOptions
Inheritance
GitPushOptions
Inherited Members

Properties

Branch

Branch to push.

public string? Branch { get; set; }

Property Value

string

Force

Force push (use with caution).

public bool Force { get; set; }

Property Value

bool

Remote

Remote to push to.

public string? Remote { get; set; }

Property Value

string

SetUpstream

Set upstream tracking reference.

public bool SetUpstream { get; set; }

Property Value

bool

Methods

ToBranch(string)

Sets the branch to push.

public GitPushOptions ToBranch(string branch)

Parameters

branch string

Returns

GitPushOptions

ToRemote(string)

Sets the remote to push to.

public GitPushOptions ToRemote(string remote)

Parameters

remote string

Returns

GitPushOptions

WithUpstream()

Sets up upstream tracking.

public GitPushOptions WithUpstream()

Returns

GitPushOptions