C# Класс GitTasks.NGit

The NGit implementation of the IGitFacade. Uses NGit to perform common Git tasks.
Наследование: IGitFacade
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

CheckoutBranch() публичный Метод

Checkout a branch or SHA.
public CheckoutBranch ( string localRepository, string branch ) : void
localRepository string The local Git repository.
branch string The branch or SHA you want to check out.
Результат void

Clone() публичный Метод

Clone a Git repository.
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.
Результат void

GetLatestSha() публичный Метод

Gets the latest SHA from a local Git repository.
public GetLatestSha ( string localRepository ) : string
localRepository string The local Git repository.
Результат string