libgit2

git_reference_remove

Version:

Delete an existing reference by name

This method removes the named reference from the repository without looking at its old value.

Signature

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

Parameters

In
repo

The repository to remove the reference from

const char *
In
name

The reference to remove

Returns

int

0 or an error code

Versions