Git aliases

Cake.Git addin

Class GitAliases. Contains functionality for working with GIT using LibGit2 & LibGit2Sharp

Add

GitAdd(ICakeContext, DirectoryPath, FilePath[])
Alias from Cake.Git addin
Add file to index.
GitAddAll(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Add all file changes to index.

Branch

GitCreateBranch(ICakeContext, DirectoryPath, string, bool)
Alias from Cake.Git addin
Creates a local Branch.

Branches

GitBranchCurrent(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Gets the current branch.
GitBranches(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Gets a list of all branches from the repository.

Checkout

GitCheckout(ICakeContext, DirectoryPath, FilePath[])
Alias from Cake.Git addin
Checkout file.
GitCheckout(ICakeContext, DirectoryPath, string, FilePath[])
Alias from Cake.Git addin
Checkout file(s) using supplied commit or branch spec.

Clean

GitClean(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Remove untracked file(s) workspace.

Clone

GitClone(ICakeContext, string, DirectoryPath)
Alias from Cake.Git addin
Clone unauthenticated using default options.
GitClone(ICakeContext, string, DirectoryPath, GitCloneSettings)
Alias from Cake.Git addin
Clone unauthenticated using specific settings.
GitClone(ICakeContext, string, DirectoryPath, string, string)
Alias from Cake.Git addin
Clone authenticated using default options.
GitClone(ICakeContext, string, DirectoryPath, string, string, GitCloneSettings)
Alias from Cake.Git addin
Clone authenticated using specific settings.

Commit

GitCommit(ICakeContext, DirectoryPath, string, string, string)
Alias from Cake.Git addin
Commit using default options.

Describe

Diff

GitDiff(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Get changed files from inital commit id up to current.
GitDiff(ICakeContext, DirectoryPath, string)
Alias from Cake.Git addin
Get changed files from certain commit id up to current.
GitDiff(ICakeContext, DirectoryPath, string, string)
Alias from Cake.Git addin
Get changed files from certain commit id up to current.

Init

GitInit(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Init using default options.

Log

GitLog(ICakeContext, DirectoryPath, int)
Alias from Cake.Git addin
Get commit log.
GitLog(ICakeContext, DirectoryPath, string)
Alias from Cake.Git addin
Get commit from certain commit id up to current.
GitLogLookup(ICakeContext, DirectoryPath, string)
Alias from Cake.Git addin
Get specific commit.
GitLogTag(ICakeContext, DirectoryPath, string)
Alias from Cake.Git addin
Get commits after a certain tag
GitLogTip(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Get last commit

Pull

GitPull(ICakeContext, DirectoryPath, string, string)
Alias from Cake.Git addin
Pull unauthenticated using default options.
GitPull(ICakeContext, DirectoryPath, string, string, string, string, string)
Alias from Cake.Git addin
Pull authenticating using default options.

Push

GitPush(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Push all branches unauthenticated.
GitPush(ICakeContext, DirectoryPath, string, string)
Alias from Cake.Git addin
Push all branches authenticated.
GitPush(ICakeContext, DirectoryPath, string, string, string)
Alias from Cake.Git addin
Push specific branch authenticated.
GitPushRef(ICakeContext, DirectoryPath, string, string)
Alias from Cake.Git addin
Push a tag to a remote unauthenticated.
GitPushRef(ICakeContext, DirectoryPath, string, string, string, string)
Alias from Cake.Git addin
Push a tag to a remote authenticated.

Remove

GitRemove(ICakeContext, DirectoryPath, bool, FilePath[])
Alias from Cake.Git addin
Remove file(s) from index.

Repository

GitFindRootFromPath(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Finding git root path from subtree.
GitHasStagedChanges(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Checks if a repository contains staged changes.
GitHasUncommitedChanges(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Checks if a repository contains uncommited changes.
GitHasUntrackedFiles(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Checks if a repository contains untracked files.
GitIsValidRepository(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Checks if a specific directory is a valid Git repository.

Reset

GitReset(ICakeContext, DirectoryPath, GitResetMode)
Alias from Cake.Git addin
Resets the current branch head (HEAD) optionally modifying index and working tree to match.
GitReset(ICakeContext, DirectoryPath, GitResetMode, string)
Alias from Cake.Git addin
Sets the current branch head (HEAD) to a specified commit, optionally modifying index and working tree to match.

Tag

GitTag(ICakeContext, DirectoryPath, string, string)
Alias from Cake.Git addin
Applys tagName to repository.
GitTag(ICakeContext, DirectoryPath, string, string, string, string)
Alias from Cake.Git addin
Applys tagName to repository as annotated tag.
GitTag(ICakeContext, DirectoryPath, string, string, string, string, string)
Alias from Cake.Git addin
Applys tagName to repository as annotated tag.

Tags

GitTag(ICakeContext, DirectoryPath, string)
Alias from Cake.Git addin
Applys tagName to repository.
GitTags(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Gets a list of all tags from the repo

Unstage

GitUnstage(ICakeContext, DirectoryPath, FilePath[])
Alias from Cake.Git addin
Removes from the staging area all the modifications of a collection of file since the latest commit (addition, updation or removal).
GitUnstageAll(ICakeContext, DirectoryPath)
Alias from Cake.Git addin
Removes from the staging area all the modifications all files the latest commit (addition, updation or removal).

Cake.GitPackager addin

General