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 new target for the reference
0 on success; error code otherwise