Set the symbolic target of a reference.
The reference must be a symbolic reference, otherwise this method will fail.
The reference will be automatically updated in memory and on disk.
The reference
The new target for the reference
GIT_SUCCESS or an error code