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
Force
Force push (use with caution).
public bool Force { get; set; }
Property Value
Remote
Remote to push to.
public string? Remote { get; set; }
Property Value
SetUpstream
Set upstream tracking reference.
public bool SetUpstream { get; set; }
Property Value
Methods
ToBranch(string)
Sets the branch to push.
public GitPushOptions ToBranch(string branch)
Parameters
branchstring
Returns
ToRemote(string)
Sets the remote to push to.
public GitPushOptions ToRemote(string remote)
Parameters
remotestring
Returns
WithUpstream()
Sets up upstream tracking.
public GitPushOptions WithUpstream()