Method | Description | |
---|---|---|
CheckoutBranch ( string localRepository, string branch ) : void |
Checkout a branch or SHA.
|
|
Clone ( string repositoryToClone, string targetDirectory ) : void |
Clone a Git repository.
|
|
GetLatestSha ( string localRepository ) : string |
Gets the latest SHA from a local Git repository.
|
public CheckoutBranch ( string localRepository, string branch ) : void | ||
localRepository | string | The local Git repository. |
branch | string | The branch or SHA you want to check out. |
return | void |
public Clone ( string repositoryToClone, string targetDirectory ) : void | ||
repositoryToClone | string | The repository to clone. |
targetDirectory | string | The target directory where you want to place the clone. |
return | void |
public GetLatestSha ( string localRepository ) : string | ||
localRepository | string | The local Git repository. |
return | string |