Create a copy of an existing reference.
Call git_reference_free to free the data.
git_reference_free
pointer where to store the copy
object to copy
0 or an error code