This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Git.
Summary
Contains functionality for working with GIT using LibGit2 & LibGit2Sharp.
NOTE:
The addin currently only runs on x64 processors. ARM processors are not supported.
- Assembly
- Cake
.Git .dll - Namespace
- Cake
.Git - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["GitAliases"]
class Type type-node
Syntax
public static class GitAliases
Attributes
Type | Description |
---|---|
Cake |
Methods
Name | Value | Summary |
---|---|---|
GitAdd |
void |
Add file to index.
static
|
GitAddAll |
void |
Add all file changes to index.
static
|
GitBranchCurrent |
GitBranch |
Gets the current branch.
static
|
GitBranches |
ICollection |
Gets a list of all branches from the repository.
static
|
GitCheckout |
void |
Checkout file.
static
|
GitCheckout |
void |
Checkout file(s) using supplied commit or branch spec.
static
|
GitClean |
void |
Remove untracked file(s) workspace.
static
|
GitClone |
DirectoryPath |
Clone unauthenticated using specific settings.
static
|
GitClone |
DirectoryPath |
Clone authenticated using specific settings.
static
|
GitClone |
DirectoryPath |
Clone authenticated using default options.
static
|
GitClone |
DirectoryPath |
Clone unauthenticated using default options.
static
|
GitCommit |
GitCommit |
Commit using default options.
static
|
GitConfigExists |
bool |
Returns whether a configuration value exists with the specifed key.
static
|
GitConfigGet |
T |
Gets the specified configuration value. If the specified value is not found it will return the specified
default value.
static
|
GitConfigGet |
T |
Gets the specified configuration value.
static
|
GitConfigSetLocal |
void |
Gets the specified configuration value. If the specified value is not found it will return the specified
default value.
static
|
GitConfigUnsetLocal |
void |
Unsets the specified local configuration key.
static
|
GitCreateBranch |
GitBranch |
Creates a local Branch.
static
|
GitDescribe |
string |
Describe current branch.
static
|
GitDescribe |
string |
Describe current branch.
static
|
GitDescribe |
string |
Describe current branch.
static
|
GitDescribe |
string |
Describe specified commit-ish.
static
|
GitDescribe |
string |
Describe current branch.
static
|
GitDiff |
ICollection |
Get changed files from certain commit id up to current.
static
|
GitDiff |
ICollection |
Get changed files from certain commit id up to current.
static
|
GitDiff |
ICollection |
Get changed files from inital commit id up to current.
static
|
GitFetch |
void |
Download from another repository.
static
|
GitFetch |
void |
Download objects and refs from another repository.
static
|
GitFetchTags |
void |
Download tags from another repository.
static
|
GitFindRootFromPath |
DirectoryPath |
Finding git root path from subtree.
static
|
GitHasStagedChanges |
bool |
Checks if a repository contains staged changes.
static
|
Git |
bool |
Checks if a repository contains uncommited changes.
static
|
GitHasUntrackedFiles |
bool |
Checks if a repository contains untracked files.
static
|
GitInit |
DirectoryPath |
Init using default options.
static
|
GitIsValidRepository |
bool |
Checks if a specific directory is a valid Git repository.
static
|
GitLog |
ICollection |
Get commit log.
static
|
GitLog |
ICollection |
Get commit from certain commit id up to current.
static
|
GitLogLookup |
GitCommit |
Get specific commit.
static
|
GitLogTag |
ICollection |
Get commits after a certain tag
static
|
GitLogTip |
GitCommit |
Get last commit
static
|
GitPull |
GitMergeResult |
Pull authenticating using default options.
static
|
GitPull |
GitMergeResult |
Pull unauthenticated using default options.
static
|
GitPush |
void |
Push specific branch authenticated.
static
|
GitPush |
void |
Push all branches authenticated.
static
|
GitPush |
void |
Push all branches unauthenticated.
static
|
GitPushRef |
void |
Push a tag to a remote authenticated.
static
|
GitPushRef |
void |
Push a tag to a remote unauthenticated.
static
|
GitRemote |
GitRemote |
Gets the specified remote from a Git repository.
static
|
GitRemotes |
IReadOnlyList |
Gets a Git repository's remotes.
static
|
GitRemove |
void |
Remove file(s) from index.
static
|
GitReset |
void |
Sets the current branch head (HEAD) to a specified commit,
optionally modifying index and working tree to match.
static
|
GitReset |
void |
Resets the current branch head (HEAD) optionally modifying index and working tree to match.
static
|
GitShortenSha |
string |
Get the short version of a commit SHA.
static
|
GitTag |
void |
Applys tagName to repository as annotated tag.
static
|
GitTag |
void |
Applys tagName to repository as annotated tag.
static
|
GitTag |
void |
Applys tagName to repository.
static
|
GitTag |
void |
Applys tagName to repository.
static
|
GitTags |
List |
Gets a list of all tags from the repository with the option to load targets of the tags.
static
|
GitTags |
List |
Gets a list of all tags from the repository.
static
|
GitUnstage |
void |
Removes from the staging area all the modifications of a collection of file since the latest commit (addition, updation or removal).
static
|
GitUnstageAll |
void |
Removes from the staging area all the modifications all files the latest commit (addition, updation or removal).
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|