Namespaces

Types in Fake.Git

Type Branches

Namespace Fake.Git

Methods

Public static methods

void checkout(string repositoryDir, bool create, string branch)

Checks a branch out

void checkoutBranch(string repositoryDir, string branch)

Performs a checkout of the given branch to the working copy

void checkoutNewBranch(string repositoryDir, string baseBranch, string branch)

Creates a new branch based on the given baseBranch and checks it out to the working copy
Parameters
string repositoryDir

The repository directory.

string baseBranch

The base branch.

string branch

The new branch.

void checkoutTracked(string repositoryDir, string trackBranch, string branch)

Checks a branch out

void createBranch(string repositoryDir, string newBranchName, string fromCommit)

Creates a new branch from the given commit

void deleteBranch(string repositoryDir, bool force, string branch)

Deletes the given branch

void deleteTag(string repositoryDir, string tag)

Deletes the given tag

string findMergeBase(string repositoryDir, string branch1, string branch2)

Returns the SHA1 of the merge base of the two given commits

FSharpList<string> getAllBranches(string repositoryDir)

Gets all local and remote branches

FSharpList<string> getLocalBranches(string repositoryDir)

Gets all local branches

FSharpList<string> getRemoteBranches(string repositoryDir)

Gets all remote branches

string getSHA1(string repositoryDir, string s)

Returns the SHA1 of the given head

void pull(string repositoryDir, string remote, string branch)

Pull

void push(string repositoryDir)

Push all

int revisionsBetween(string repositoryDir, string branch1, string branch2)

Returns the number of revisions between the two given commits

void tag(string repositoryDir, string tag)

Tags the current branch