共用方式為


RepositoryRefDefinition Class

Definition

The source reference for the GitRepository object.

public class RepositoryRefDefinition
type RepositoryRefDefinition = class
Public Class RepositoryRefDefinition
Inheritance
RepositoryRefDefinition

Constructors

RepositoryRefDefinition()

Initializes a new instance of the RepositoryRefDefinition class.

RepositoryRefDefinition(String, String, String, String)

Initializes a new instance of the RepositoryRefDefinition class.

Properties

Branch

Gets or sets the git repository branch name to checkout.

Commit

Gets or sets the commit SHA to checkout. This value must be combined with the branch name to be valid. This takes precedence over semver.

Semver

Gets or sets the semver range used to match against git repository tags. This takes precedence over tag.

Tag

Gets or sets the git repository tag name to checkout. This takes precedence over branch.

Applies to