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

const char *
In
name

The reference to remove

Returns

int

0 or an error code

Versions