libgit2

git_remote_delete

Version:

Delete an existing persisted remote.

All remote-tracking branches and configuration settings for the remote will be removed.

Signature

int git_remote_delete(git_repository *repo, const char *name);

Parameters

In
repo

the repository in which to act

const char *
In
name

the name of the remove to delete

Returns

int

0 on success, or an error code.

Versions