Create a new reference. Either an oid or a symbolic target must be specified.
the reference database to associate with this reference
the reference name
the object id for a direct reference
the target for a symbolic reference
the created git_reference or NULL on error