API calls for all endpoints tagged Git.
Summary
Functions
Add files to Git staging Add files to the Git staging area
Add a remote Add (or overwrite) a remote in the Git repository
Authenticate Git Persist Git credentials globally via the credential store. Stores the password in plaintext on disk.
Checkout branch or commit Switch to a different branch or commit in the Git repository
Clone a Git repository Clone a Git repository to the specified path. Defaults to strict TLS verification; set insecure_skip_tls=true to skip verification for self-signed or private-CA Git servers.
Commit changes Commit staged changes to the Git repository
Configure Git user Configure the Git user name and email at the given scope
Create a new branch Create a new branch in the Git repository
Delete a branch Delete a branch from the Git repository
Get commit history Get the commit history of the Git repository
Get a Git config value Get a Git config value at the given scope (null when unset)
Get Git status Get the Git status of the repository at the specified path
Initialize a Git repository Initialize a new Git repository at the specified path
List branches Get a list of all branches in the Git repository
List remotes List the remotes configured in the Git repository
Pull changes from remote Pull changes from the remote Git repository
Push changes to remote Push local changes to the remote Git repository
Reset repository Reset the current HEAD to the specified state
Restore files Restore working tree files or unstage changes
Set a Git config value Set a Git config key/value at the given scope
Functions
@spec add_files(Tesla.Env.client(), ExDaytona.Model.GitAddRequest.t(), keyword()) :: {:ok, nil} | {:ok, ExDaytona.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Add files to Git staging Add files to the Git staging area
Parameters
connection(ExDaytona.Connection): Connection to servergit_add_request(GitAddRequest): Add files requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec add_remote( Tesla.Env.client(), ExDaytona.Model.GitAddRemoteRequest.t(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Add a remote Add (or overwrite) a remote in the Git repository
Parameters
connection(ExDaytona.Connection): Connection to servergit_add_remote_request(GitAddRemoteRequest): Add remote requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec authenticate( Tesla.Env.client(), ExDaytona.Model.GitAuthenticateRequest.t(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Authenticate Git Persist Git credentials globally via the credential store. Stores the password in plaintext on disk.
Parameters
connection(ExDaytona.Connection): Connection to servergit_authenticate_request(GitAuthenticateRequest): Authenticate requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec checkout_branch( Tesla.Env.client(), ExDaytona.Model.GitCheckoutRequest.t(), keyword() ) :: {:ok, nil} | {:ok, ExDaytona.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Checkout branch or commit Switch to a different branch or commit in the Git repository
Parameters
connection(ExDaytona.Connection): Connection to servergit_checkout_request(GitCheckoutRequest): Checkout requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec clone_repository( Tesla.Env.client(), ExDaytona.Model.GitCloneRequest.t(), keyword() ) :: {:ok, nil} | {:ok, ExDaytona.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Clone a Git repository Clone a Git repository to the specified path. Defaults to strict TLS verification; set insecure_skip_tls=true to skip verification for self-signed or private-CA Git servers.
Parameters
connection(ExDaytona.Connection): Connection to servergit_clone_request(GitCloneRequest): Clone repository requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec commit_changes( Tesla.Env.client(), ExDaytona.Model.GitCommitRequest.t(), keyword() ) :: {:ok, ExDaytona.Model.ErrorResponse.t()} | {:ok, ExDaytona.Model.GitCommitResponse.t()} | {:error, Tesla.Env.t()}
Commit changes Commit staged changes to the Git repository
Parameters
connection(ExDaytona.Connection): Connection to servergit_commit_request(GitCommitRequest): Commit requestopts(keyword): Optional parameters
Returns
{:ok, ExDaytona.Model.GitCommitResponse.t}on success{:error, Tesla.Env.t}on failure
@spec configure_user( Tesla.Env.client(), ExDaytona.Model.GitConfigureUserRequest.t(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Configure Git user Configure the Git user name and email at the given scope
Parameters
connection(ExDaytona.Connection): Connection to servergit_configure_user_request(GitConfigureUserRequest): Configure user requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec create_branch( Tesla.Env.client(), ExDaytona.Model.GitBranchRequest.t(), keyword() ) :: {:ok, nil} | {:ok, ExDaytona.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Create a new branch Create a new branch in the Git repository
Parameters
connection(ExDaytona.Connection): Connection to servergit_branch_request(GitBranchRequest): Create branch requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec delete_branch( Tesla.Env.client(), ExDaytona.Model.GitDeleteBranchRequest.t(), keyword() ) :: {:ok, nil} | {:ok, ExDaytona.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Delete a branch Delete a branch from the Git repository
Parameters
connection(ExDaytona.Connection): Connection to servergit_delete_branch_request(GitDeleteBranchRequest): Delete branch requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec get_commit_history(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExDaytona.Model.ErrorResponse.t()} | {:ok, [ExDaytona.Model.GitCommitInfo.t()]} | {:error, Tesla.Env.t()}
Get commit history Get the commit history of the Git repository
Parameters
connection(ExDaytona.Connection): Connection to serverpath(String.t): Repository pathopts(keyword): Optional parameters
Returns
{:ok, [%GitCommitInfo{}, ...]}on success{:error, Tesla.Env.t}on failure
@spec get_git_config(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExDaytona.Model.GitConfigResponse.t()} | {:error, Tesla.Env.t()}
Get a Git config value Get a Git config value at the given scope (null when unset)
Parameters
connection(ExDaytona.Connection): Connection to serverkey(String.t): Config key (e.g. user.name)opts(keyword): Optional parameters:path(String.t): Repository path (required for local scope):scope(String.t): Config scope: global (default), local or system
Returns
{:ok, ExDaytona.Model.GitConfigResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_status(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExDaytona.Model.ErrorResponse.t()} | {:ok, ExDaytona.Model.GitStatus.t()} | {:error, Tesla.Env.t()}
Get Git status Get the Git status of the repository at the specified path
Parameters
connection(ExDaytona.Connection): Connection to serverpath(String.t): Repository pathopts(keyword): Optional parameters
Returns
{:ok, ExDaytona.Model.GitStatus.t}on success{:error, Tesla.Env.t}on failure
@spec init_repository( Tesla.Env.client(), ExDaytona.Model.GitInitRequest.t(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Initialize a Git repository Initialize a new Git repository at the specified path
Parameters
connection(ExDaytona.Connection): Connection to servergit_init_request(GitInitRequest): Init repository requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec list_branches(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExDaytona.Model.ErrorResponse.t()} | {:ok, ExDaytona.Model.ListBranchResponse.t()} | {:error, Tesla.Env.t()}
List branches Get a list of all branches in the Git repository
Parameters
connection(ExDaytona.Connection): Connection to serverpath(String.t): Repository pathopts(keyword): Optional parameters
Returns
{:ok, ExDaytona.Model.ListBranchResponse.t}on success{:error, Tesla.Env.t}on failure
@spec list_remotes(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExDaytona.Model.ListRemotesResponse.t()} | {:error, Tesla.Env.t()}
List remotes List the remotes configured in the Git repository
Parameters
connection(ExDaytona.Connection): Connection to serverpath(String.t): Repository pathopts(keyword): Optional parameters
Returns
{:ok, ExDaytona.Model.ListRemotesResponse.t}on success{:error, Tesla.Env.t}on failure
@spec pull_changes(Tesla.Env.client(), ExDaytona.Model.GitPullRequest.t(), keyword()) :: {:ok, nil} | {:ok, ExDaytona.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Pull changes from remote Pull changes from the remote Git repository
Parameters
connection(ExDaytona.Connection): Connection to servergit_pull_request(GitPullRequest): Pull requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec push_changes(Tesla.Env.client(), ExDaytona.Model.GitPushRequest.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Push changes to remote Push local changes to the remote Git repository
Parameters
connection(ExDaytona.Connection): Connection to servergit_push_request(GitPushRequest): Push requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec reset_changes( Tesla.Env.client(), ExDaytona.Model.GitResetRequest.t(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Reset repository Reset the current HEAD to the specified state
Parameters
connection(ExDaytona.Connection): Connection to servergit_reset_request(GitResetRequest): Reset requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec restore_files( Tesla.Env.client(), ExDaytona.Model.GitRestoreRequest.t(), keyword() ) :: {:ok, nil} | {:ok, ExDaytona.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Restore files Restore working tree files or unstage changes
Parameters
connection(ExDaytona.Connection): Connection to servergit_restore_request(GitRestoreRequest): Restore requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec set_git_config( Tesla.Env.client(), ExDaytona.Model.GitSetConfigRequest.t(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Set a Git config value Set a Git config key/value at the given scope
Parameters
connection(ExDaytona.Connection): Connection to servergit_set_config_request(GitSetConfigRequest): Set config requestopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure